Table of Contents

Class SolidValidation3

Namespace
GeometryHelper
Assembly
GeometryHelper.dll

What Validate(Tolerance) found of the faces of a body: whether they bound one, and each thing wrong with them, or worth knowing, and where.

public sealed class SolidValidation3
Inheritance
SolidValidation3
Inherited Members

Remarks

IsClosed(Tolerance) says whether the faces close; this says where they do not, and what else it finds on the way. The edges are matched as it matches them, by overlap along a line within the point tolerance, twin edges by their ends, and within the rounding of the coordinates where the tolerance is below it, so the two agree on whether the body is closed: IsClosed is its answer, with every stretch it left open in Issues. A speck, a body with no edge longer than the tolerance, is the one exception: no stretch of it is open, and it is closed here and not valid, enclosing nothing, where IsClosed says it does not close. It also reads which way the faces meeting on a stretch run it, which IsClosed does not: a face wound the wrong way round closes the body for it, and is a SameWayEdge on each of its edges here.

The faces are read, the openings not: each opening is a body of its own, and is checked by asking it.

Properties

IsClosed

Gets whether the faces close: no OpenEdge, as IsClosed(Tolerance) answers, but for a speck with no edge longer than the tolerance, which is closed here and not there.

IsValid

Gets whether the faces bound a body every boolean and measure can read: closed, wound alike and outwards, and enclosing more than a slab the tolerance thick; no issue of the first four kinds of SolidIssueKind.

IsWoundAlike

Gets whether the faces meeting on each stretch of edge run it as many times one way as the other: no SameWayEdge.

Issues

Gets everything found, in the order of SolidIssueKind, and of each kind in the order the faces come.

SignedVolume

Gets the volume the faces enclose, the openings not cut out: positive where they are wound outwards, negative where inwards, and of no meaning where they do not close.

Methods

ToString()

Says whether the body is valid, its volume, and how many of each kind were found, in invariant culture.