| 363 | } |
| 364 | |
| 365 | bool 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 | |
| 374 | bool isNonIntersectingInside( const MeshPart& a, const MeshPart& b, const AffineXf3f* rigidB2A ) |
| 375 | { |