Replies: 1 comment 2 replies
-
Hello! Actually, your code is OK, but mesh has tunnel, that why Please give it a try, change your one_part = fillContourLeftByGraphCut(mesh_clone.topology, edge_path, edgeCurvMetric(mesh_clone))
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
test_file.zip
Hello,
Issue: cutMesh Function Not Producing Expected Results (Empty removed_mesh)
Description
I am using the meshlib. mrmeshpy library to cut a dental mesh (. stl file) using a set of 3D points that define the cutting contour. My expectation is that the function cutMesh should return two separate meshes:
kept_mesh: The part that is retained after cutting.
removed_mesh: The portion that has been cut away.
However, removed_mesh is empty (contains no faces), which suggests that the cutting operation may not be performed correctly.May I ask if this is because of my stl file (mesh) problem or loop_points problem? How should I solve this problem to make correct cutting?I have uploaded an example of not cutting correctly, which contains a tooth mesh and corresponding loop_points that need to be cut.
Beta Was this translation helpful? Give feedback.
All reactions