How to get the faces which are penetrating the colliding mesh? #4498
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello! Unfortunately there is no simple way to do it in common case. MeshLib/source/MRMesh/MRRegionBoundary.h Lines 27 to 31 in 2129ff0 and MeshLib/source/MRMesh/MRFillContour.h Lines 8 to 10 in 2129ff0 To do so, you need to find longest loop (in your case). But in common case loops could have complex topology. Other way is to use MeshLib/source/MRMesh/MRMeshBoolean.h Lines 103 to 121 in 2129ff0 with BooleanOperation::InideA or BooleanOperation::InideB, and use result VertBitSet
|
Beta Was this translation helpful? Give feedback.
I see.
Actually we have special function to find penetration:
MeshLib/source/MRMesh/MRMeshMeshDistance.h
Lines 41 to 47 in a4345b1