[Gmsh] no tets in mesh saved as STL

Christophe Geuzaine cgeuzaine at ulg.ac.be
Mon May 5 13:36:27 CEST 2008


Ernest Johnson wrote:
>  >the STL format is only based on triangular facets, it contains no 
> volumic elements...
>  >
>  >What about the UNV mesh file format ?
> 
> Yes, probably I should use that one.
> 
> But VTK has a vtkSTLReader, but no UNV reader. Can you suggest a method 
> to convert UNV into a format that VTK (or paraview) understands?

Hi Ernest - To avoid writing format translators again and again (IIRC 
several people on this list are also interested in the VTK format), it 
would actually be really nice if you could directly add a routine in 
Gmsh to save a mesh in VTK format.

It shouldn't be to hard... if you know the spec of the VTK format: just 
download a nightly cvs snapshot of Gmsh and add a writeVTK() routine in 
Geo/GModelIO_Mesh.cpp. That file already contains several other examples.

If you code this we'd be happy to add it in the next official release.

Best,
Christophe



> 
> Thank you
> Ernest
> 
> 
> ------------------------------------------------------------------------
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try 
> it now. 
> <http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
>  >
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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