Generating quad mesh from STEP file
Hey GMSH community,
Thanks for creating and painstakingly maintaining an advanced mesher. Your work is greatly appreciated.
I'm new to using GMSH and am just getting started with understanding the GMSH API. I'm trying to generate a quad mesh from the attached STEP (CAD) file. I'm able to get a reasonable quad mesh to display in the GUI (There are errors in the generation of this mesh, but the I'm happy with the result).
The options that I choose in the GUI for this mesh are as follows:
At this point I have two issues:
When I export the generated quad mesh to STL (File -> Export -> ...), the exported STL file contains a TRI mesh, not the QUAD mesh. Is there a way in the GUI to say "I'm happy with the result, please export the quads to STL". I'm happy to use formats other than STL, but I do need to import the later in Blender (so ideal formats would be STL, PLY, OBJ)
Assuming item (1) is resolved, what is a minimal script (either .geo or .py) that can achieve the import, quad meshing and STL export steps? My attempt at a minimal .geo script is attached gmsh_import_step.geo. I invoke this script as:
gmsh gmsh_import_step.geo -3 -o output.stl
The result is the same:
output.stl is a TRI mesh, not a QUAD mesh that is visible in the GUI.
I feel like I'm making some basic error (like failing to save after refining or recombining meshes), but all obvious fixes have failed and I cant get anything other than the TRI mesh).
In Summary I need a simple starter script that imports a STEP file and output a QUAD mesh. Thanks in advance for your help.