How to use Segment Mesh in MeshLib Python #4574
-
Hello Devs, Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Hello! You might find this #1627 helpful. Also it might be worth mentioning that we use this metric for contouring: MeshLib/source/MRMesh/MREdgeMetric.h Lines 32 to 37 in f3c4381 |
Beta Was this translation helpful? Give feedback.
-
Hello @Grantim The surrounding contour is covering a bigger area than expected while using default settings
![]()
Although while trying on MeshInspector UI I was able to get the expected output with the same points by changing the direction, but in finding correct direction in code is where i'm stuck.
![]() The goal is to segment the middle tooth you can find the mesh here here's the code snippet for reference:
|
Beta Was this translation helpful? Give feedback.
-
Hi Grantim, what does "Tuning direction " in this case mean ? |
Beta Was this translation helpful? Give feedback.
Hello!
You might find this #1627 helpful.
In general the idea there is to build "Surrounding Contour" around picked pointes and then separate its "left" part with respect to possible tunnels.
Also it might be worth mentioning that we use this metric for contouring:
MeshLib/source/MRMesh/MREdgeMetric.h
Lines 32 to 37 in f3c4381