Table of Contents

Method GetFaces

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetFaces()

Gets the six faces of the box as polygons, each wound so its normal points outwards.

public GeoPolygon3[] GetFaces()

Returns

GeoPolygon3[]

Remarks

The size is read from the box's own numbers, not against a tolerance: a box 0.002 by 50 by 30 has its six faces, two of them 0.002 by 30, where it was refused as flat at the default point tolerance; so has a box 0.0002 thick. Each face is its four corners, with the normal and the area they make.

Exceptions

InvalidOperationException

Thrown when the box is flat on any axis: its size there no more than a millionth of a millionth of how far it reaches from the origin, the rounding of its own numbers.