Method CollidesWith
- Namespace
- GeometryHelper.Spatial
- Assembly
- GeometryHelper.dll
CollidesWith(GeoBvh3)
Checks whether any triangle of this mesh touches any triangle of another, using the default tolerance.
public bool CollidesWith(GeoBvh3 other)
Parameters
otherGeoBvh3
Returns
CollidesWith(GeoBvh3, Tolerance)
Checks whether any triangle of this mesh touches any triangle of another, within a tolerance.
public bool CollidesWith(GeoBvh3 other, Tolerance tolerance)
Parameters
Returns
Remarks
The two trees are walked together, and a pair of boxes that do not overlap prunes every pair of
triangles beneath them at once. This answers surface contact only: one mesh sitting wholly
inside another without touching it is not a collision here, which is why
Collision3.CollidesWith tests containment separately.