[Gmsh] Error Remeshing STL to Generate QUADs/HEXAs

Ted Kord teddy.kord at gmail.com
Fri Nov 26 23:06:06 CET 2010


I tried used the following geo file to remesh my STL file using quads/hexas:

Mesh.CharacteristicLengthFactor=0.25;
Merge "mesh.stl";
CreateTopology;

Compound Surface(200)={1};

Mesh.RemeshAlgorithm=1

Recombine Surface {200};
Physical Surface("newSurfaceMesh")={200};

but I get this error even after adding 'Mesh.RemeshAlgorithm=1':

./gmsh Offset_mesh.geo -3
Info    : Running './gmsh Offset_mesh.geo -3' [1 node(s), max. 1 thread(s)]
Info    : Started on Fri Nov 26 21:53:02 2010
Info    : Reading 'Offset_mesh.geo'...
Info    : Reading 'mesh.stl'...
Info    : 68764 facets in solid 0
Info    : Done reading 'mesh.stl'
Info    : Creating topology from mesh...
Info    : Removing duplicate mesh vertices...
Info    : No duplicate vertices found
Info    : Done creating topology from mesh (0.799456 s)
Error   : 'Offset_mesh.geo', line 9 : syntax error (Recombine)
Info    : Done reading 'Offset_mesh.geo'
Info    : Meshing 1D...
Info    : Done meshing 1D (0 s)
Info    : Meshing 2D...
Info    : Meshing surface 200 (Compound surface, MeshAdapt)
Warning : Wrong topology: Genus=1, Nb boundaries=0, AR=1
Error   : For remeshing your geometry, you should enable the automatic
remeshing algorithm.
Error   : Add 'Mesh.RemeshAlgorithm=1;' in your geo file or through the Fltk
window


Ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20101126/95b14b50/attachment.html>