Table of Contents

Method IsEqualTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

IsEqualTo(GeoSolid3)

Compares whether this solid equals another using the default tolerance.

public bool IsEqualTo(GeoSolid3 other)

Parameters

other GeoSolid3

Returns

bool

IsEqualTo(GeoSolid3, Tolerance)

Compares whether this solid equals another within a tolerance, ignoring the order the faces are listed in.

public bool IsEqualTo(GeoSolid3 other, Tolerance tolerance)

Parameters

other GeoSolid3
tolerance Tolerance

Returns

bool

Remarks

The order of faces on a solid carries no meaning — the same box built starting from a different face is the same box — so the faces are matched up rather than compared position by position. The matching is greedy and quadratic, which is fine for the face counts a flat-faced solid has.