[Gmsh] VTK Element Type
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Fri Sep 9 13:19:57 CEST 2011
On 09 Sep 2011, at 12:45, Graeme Edwards wrote:
> Hi there,
>
> Think I may have found a bug in GMSH. When exporting a mesh to a VTK and exporting quadratic tetrahedrons (or any form of quadratic element for that metter) the element type exported is wrong.
>
> For instance a quadratic tetrahedron should have element type 24 but has element type 10 (with 10 being the element type for a linear tetrahedron). The same problem is present when using quadratic triangles as well in that they have the element type of a linear triangle.
>
Hi Graeme - Indeed; I've committed a small patch to correct this. However, I haven't checked if the node ordering is correct for these second order elements. Please let us know if any reordering (cf. getVertexVTK) is necessary.
> Regards
>
> Graeme Edwards
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine