I've tested both approaches with your suggestion using gmsh python api, both work fine. Thank you very much.
I think I misunderstood the first parameter of ClassifySurfaces()
before. I set angle = 0(not pi), and it give me too many discrete surface
hi,all.
I have a closed triangle mesh from .stl file. then I would like to generate 3D tetrahedral mesh directly from the 2d triangle mesh, without rebuilding a geometry, is there any function I can use from the gmsh model?
I know we can remesh a stl file by rebuilding discrete surfaces and creating a geometry for the discrete entities, then generate mesh on the geometry model
gmsh.model.mesh.classifySurfaces(angle * math.pi / 180., includeBoundary,forceParametrizablePatches)
gmsh.model.mesh.createGeometry()
gmsh.model.geo.synchronize()
but some time the .stl mesh is too complicated to rebuild geometry, such as the porous lattice structure
In the HyperWork/HyperView/Abaqus I can use "Tetra Mesh" or "Convert tri to tet" to do it and it works well with a uniform closed triangular mesh. Is there any tool or algorithm I can use in the gmsh? Do you plan to add this feature?