Table of Contents

Constructor SolidClosingOptions

Namespace
GeometryHelper
Assembly
GeometryHelper.dll

SolidClosingOptions(Tolerance, double, double, double, FillStrategy)

Initializes the options.

public SolidClosingOptions(Tolerance tolerance, double maxGap, double maxHoleArea = 0, double maxOffFlat = 0, FillStrategy fill = FillStrategy.WhenUnambiguous)

Parameters

tolerance Tolerance

The tolerance the body is judged closed within, as Validate(Tolerance) judges it.

maxGap double

How far apart the corners across a gap may stand and still be made one, and how far a corner may stand off an edge and still be put on it; see MaxGap.

maxHoleArea double

The most a hole may enclose and still be filled; see MaxHoleArea. Nought fills none, and PositiveInfinity fills any.

maxOffFlat double

How far out of flat a hole may stand and still be filled, by triangles; see MaxOffFlat. Nought fills only the flat ones.

fill FillStrategy

Which holes are filled; see FillStrategy.

Exceptions

ArgumentOutOfRangeException

Thrown when the gap is not a finite number above nought, the largest hole is negative or NaN, the distance out of flat is negative, NaN or infinite, or the strategy is not one of FillStrategy.