Class SolidClosingOptions
- Namespace
- GeometryHelper
- Assembly
- GeometryHelper.dll
How TryClose(out GeoSolid3, SolidClosingOptions, out SolidClosing3) closes an open body: within which tolerance it is judged closed, how far apart the corners across a gap may stand and still be made one, and which holes may be filled.
public sealed class SolidClosingOptions : IEquatable<SolidClosingOptions>
- Inheritance
-
SolidClosingOptions
- Implements
- Inherited Members
Remarks
A body is closed with the least change that does it, and nothing is made up where the change is not certain. Corners standing apart across a gap no wider than MaxGap are made one, and a corner standing that near an edge of another face left open is put on it: neither moves the surface further than the gap, and no face is folded back onto another. A hole is filled only where it encloses no more than MaxHoleArea: by one face where it is flat, and by the triangles of least area across it where it is out of flat by no more than MaxOffFlat, as Fill allows. No hole is filled unless asked: the largest hole is nought by default.
The gap is a question of how the body was made. A boolean cut within a hundredth closes within a hundredth and no closer: read within a thousandth, the default tolerance, it can be open by copies of an edge up to a hundredth apart, which a gap of a hundredth reaches. A face left out is another matter, and no weld closes it: a box 100 by 200 by 300 with its top left out is closed by a face of 20 000 square units, and only where the largest hole is at least that.
The options are immutable, so one instance can be shared between threads and kept as a setting.
Constructors
- SolidClosingOptions(Tolerance, double, double, double, FillStrategy)
Initializes the options.
Properties
- Fill
Gets which holes are filled: none, those that can be filled one way only, or every one that may be.
- MaxGap
Gets 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.
- MaxHoleArea
Gets the most a hole may enclose and still be filled; nought fills none, and PositiveInfinity any.
- MaxOffFlat
Gets how far out of flat a hole may stand and still be filled, by the triangles of least area across it; nought fills only the holes flat within the planar tolerance.
- Tolerance
Gets the tolerance the body is judged closed within: the result is valid within it, as Validate(Tolerance) reads it, and corners within it of each other are one.