mesh size

19 views
Skip to first unread message

Anne-Cecile Lesage

unread,
Apr 1, 2024, 7:42:00 PM4/1/24
to iso2mesh-users
Dear Dr Fang and all

I am calling the v2s function this way [node1,face1]=v2s(V,255,opt);
I get a mesh of 40000 nodes. How do i change the options to get a finer mesh?

Thank you
Best regards
Anne-Cecile Lesage

Qianqian Fang

unread,
Apr 1, 2024, 8:05:23 PM4/1/24
to iso2mes...@googlegroups.com, Anne-Cecile Lesage

hi Anne-Cecile,

40000 is the default maximum node number we allow cgalsurf to produce. you are getting 40000 nodes yet still have a coarse mesh indicates that you are running into a known convergence issue for at least the older versions of CGAL - I am not sure if this has been fixed. A list of documented discussions on this can be found at

https://github.com/fangq/iso2mesh/issues/5

basically when there are so called "non-manifold" structures at your chosen threadhold, cgal could get trapped in an infinite refinement loop, causing it to create extremely dense spots while not meshing other areas evenly.

you can change your thread-hod slightly, for example, instead of 0.5, give it 0.51, or 0.6 and see if it can get out of the infinite refinement loop

you can set the maxnode limit to a higher number, it it won't help you because it will continue refining the local area until the new limit is reached

https://github.com/fangq/iso2mesh/blob/master/vol2surf.m#L27

Qianqian

--
You received this message because you are subscribed to the Google Groups "iso2mesh-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iso2mesh-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iso2mesh-users/a10589e4-b280-4f58-9908-2fe1c7cec439n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages