Skip to content
Discussion options

You must be logged in to vote

for the full intersection segment one MeshLib approach is to build a single face MR::Mesh from each Triangle3f using MR::Mesh::fromTriangles then call MR::findIntersectionContours(meshA, meshB) from <MRMesh/MRMeshBoolean.h>

i checked this through the Python bindings in MeshLib 3.1.4.297 with two noncoplanar triangles and got one contour with two endpoints a disjoint pair returned no contours

for that noncoplanar segment case the two contour points are your segment endpoints coplanar overlap needs separate handling since it can be an area

API docs

findTriangleTriangleIntersection in MRTriangleIntersection.h only returns one intersection point so it does not directly give both endpoints

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ManuGraiph
Comment options

Answer selected by ManuGraiph
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants