Converting Triangular mesh to tetrahedral mesh

37 views
Skip to first unread message

zongxin hu

unread,
Jun 18, 2023, 8:48:10 AM6/18/23
to iso2mesh-users
Dear Dr. Fang,

I'm using iso2mesh to convert the triangular mesh from .stl file to tetrahedral mesh. Is that ok for me to write these code in Matlab? 

But it has been running for two days, i think there are some problems.

Thanks a lot!

联想截图_20230618175557.png

Best,
Hu

Qianqian Fang

unread,
Feb 14, 2024, 4:58:54 PM2/14/24
to iso2mesh-users
I apologize that I haven't been checking this mailing list for a while. 

for your question - I would kill any iso2mesh command if it runs for over 10-20 min. In nearly all cases I use iso2mesh, the output should be returned rather quickly if everything is done correctly. 

for the used commands, I want to mention two things

1. stl files duplicate nodes for every triangle, therefore, when you read nodes from stlread, you may likely have many duplicated nodes in the perv output, and cause cgals2m failing in the following step.

you must call meshcheckrepair(perv, perf, 'dup') to remove duplicated nodes and triangles first before further processing

2. please try s2m() or surf2mesh instead of cgals2m. tetgen has been working reliably as long as the input mesh is a valid manifold.
Reply all
Reply to author
Forward
0 new messages