Method Validate
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Validate()
Checks the faces of the solid, using the default tolerance.
public SolidValidation3 Validate()
Returns
Validate(Tolerance)
Checks the faces of the solid within a tolerance: where they do not close, where faces meeting on an edge run it the same way, which way they are wound, and the short edges, thin faces, faces out of flat and edges four faces meet on that are worth knowing about.
public SolidValidation3 Validate(Tolerance tolerance)
Parameters
toleranceToleranceThe tolerance edges are matched within, as IsClosed(Tolerance) matches them.
Returns
- SolidValidation3
Whether the faces bound a body, and each thing found, with where it is.
Remarks
IsClosed(Tolerance) answers yes or no; this says where. A body a boolean cut within five hundredths and found open within a hundredth shows the stretches it is open along and the faces on them, so the corners that are one point to one face and two to another can be read off. The openings are bodies of their own, and are checked by asking them.
part.TrySubtract(cutter, out GeoSolid3 rest, new Tolerance(0.05, 0.01, Tolerance.DefaultEqualAngleRad, 0.05));
SolidValidation3 check = rest.Validate(); // within the default tolerance, a thousandth
if (!check.IsValid)
{
foreach (SolidIssue3 issue in check.Issues)
{
Console.WriteLine(issue); // SolidIssue3[OpenEdge 0.0134 long at (1250, 300, 2700), face 12; 1 one way, 0 the other]
}
}