MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / isInside

Function isInside

source/MRMesh/MRMeshCollide.cpp:365–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365bool isInside( const MeshPart & a, const MeshPart & b, const AffineXf3f * rigidB2A )
366{
367 auto cols = findCollidingTriangles( a, b, rigidB2A, true );
368 if ( !cols.empty() )
369 return false; // meshes intersect
370
371 return isNonIntersectingInside( a, b, rigidB2A );
372}
373
374bool isNonIntersectingInside( const MeshPart& a, const MeshPart& b, const AffineXf3f* rigidB2A )
375{

Callers 3

getBooleanPointsFunction · 0.70
TestMeshCollideMethod · 0.50
EMSCRIPTEN_BINDINGSFunction · 0.50

Calls 3

findCollidingTrianglesFunction · 0.85
isNonIntersectingInsideFunction · 0.85
emptyMethod · 0.45

Tested by 1

TestMeshCollideMethod · 0.40