Table of Contents

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

other GeoBvh3

Returns

bool

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

other GeoBvh3
tolerance Tolerance

Returns

bool

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.