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
toleranceToleranceThe tolerance the body is judged closed within, as Validate(Tolerance) judges it.
maxGapdoubleHow 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.
maxHoleAreadoubleThe most a hole may enclose and still be filled; see MaxHoleArea. Nought fills none, and PositiveInfinity fills any.
maxOffFlatdoubleHow far out of flat a hole may stand and still be filled, by triangles; see MaxOffFlat. Nought fills only the flat ones.
fillFillStrategyWhich 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.