Table of Contents

Method Compare

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

Compare(GeoSolid3)

Measures a body's material every way, using the default tolerance.

public static MeasureComparison3 Compare(GeoSolid3 solid)

Parameters

solid GeoSolid3

Returns

MeasureComparison3

Compare(GeoSolid3, Tolerance)

Measures a body's material every way: its volume, centroid and surface area by each method, how far apart they come, and how far its faces close.

public static MeasureComparison3 Compare(GeoSolid3 solid, Tolerance tolerance)

Parameters

solid GeoSolid3

The body.

tolerance Tolerance

The tolerance the openings are cut in and the faces broken into triangles within.

Returns

MeasureComparison3

The measures, side by side.

Remarks

How far the faces close is how far the volume moves when it is measured from each corner of the body's box instead of its middle, by Surface: where the faces close, the parts of the tetrahedra outside the body cancel wherever they are measured from, and only the rounding is left. Faces that meet within the tolerance but not on one another, as copies of one edge a few thousandths apart, leave gaps the volume holds or not depending on where it is measured from.

Exceptions

ArgumentNullException

Thrown when the body is null.