function to check two geometries are intersecting each other or not #3462
Unanswered
dhanraj-khatal
asked this question in
Q&A
Replies: 1 comment
-
Hello! from meshlib import mrmeshpy as mm
meshA = mm.loadMesh("meshA.stl")
meshB = mm.loadMesh("meshB.stl")
# meshA, meshB - meshes to find collisions
# None - `rigidB2A` mm.AffineXf3f transformation from mesh B space to mesh A space - identity by default
# True - `firstIntersectionOnly` if set early out first found collision, otherwise finds all collisions
colisions = mm.findCollidingTriangles(meshA,meshB,None,True)
if ( len(colisions)==0 ):
print( "Meshes do not touch" )
else:
print( "Meshes do touch" ) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is there any function in Python that can take two geometries as input and as a result give me whether these geometries are touching each other or not
Beta Was this translation helpful? Give feedback.
All reactions