CGAL / cgal

The public CGAL repository, see the README below
https://github.com/CGAL/cgal#readme
Other
4.86k stars 1.38k forks source link

Mesh Split by Geodesic Distance / Iso Values #5885

Closed petrasvestartas closed 9 months ago

petrasvestartas commented 3 years ago

Issue Details

I have a mesh with Geodesic Distance computed at each vertex like Heat method https://doc.cgal.org/latest/Heat_method_3/index.html. All geodesic distances are remapped to [0;1] interval. Is there any existing method that could split this mesh into stripes based on vertex values e.g. [0.0;0.1] [0.1;0.2] ... [0.9;1.0] like image on the right side?

I imagine that boolean difference/intersections are split in a similar way. But I have no knowledge how to set it up.

I did this operation using C# language, but this takes around 2.4 second for splitting 1 mesh into 10 mesh stripes: Geodesics

petrasvestartas commented 3 years ago

Anyone?

sloriot commented 3 years ago

You can check https://github.com/CGAL/cgal/pull/5895 that is adding a new PMP header file and an example that should be doing what you want. Feel free to report issues or improvements in the PR directly.

petrasvestartas commented 3 years ago

You are awesome! Thank you.