BrepDeviationMeasure
ReferencesThe deviation from one Brep to another, measured at points sampled on the first. The deviation at a sample is its distance to the closest point of the other Brep. When the sample is past a naked edge of the other Brep by no more than the tolerance, it is the distance along the normal of the edge's face, and the sample's line ends on that face's tangent plane at the edge, off the other Brep by no more than the tolerance. A sample has no counterpart when that closest point is on a naked edge of the other Brep and the sample is past the edge by more than the tolerance, measured in the tangent plane of the edge's face. These samples are where the Breps do not overlap. They are counted, but are not part of Maximum or MeanDeviation.
Properties
Maximum
#The sample with a counterpart with the largest deviation, refined to a local maximum. Its BrepDeviationSample.Component is an edge when it is within the tolerance of an edge of the measured Brep, other than a seam, and a face otherwise. An empty sample when no sample has a counterpart.
MaximumOutside
#The sample without a counterpart with the largest deviation. Not refined. An empty sample when there are none.
MeanDeviation
#The mean deviation of the face samples with a counterpart, weighted by area. NaN when there are none.
Mesh
#public Mesh Mesh { get; }
When BrepDeviationOptions.SampleMesh was true, the face samples as a mesh. Each face's samples are a grid, joined into quads. Points on the sides of the grid, and where the face's trims cross the grid lines, are added so the mesh reaches the sides and the trims, with straight segments between those points. They are evaluated and refined from like samples, also when SampleMesh is false, but are not samples. A trim feature smaller than a grid cell can be covered by the mesh or missed by it. Edge samples are not in the mesh. The point of Maximum is a vertex when its face has mesh faces, and no vertex deviation is larger than its. Otherwise, or when the mesh has no faces, null.
Samples
#When BrepDeviationOptions.KeepSamples was true, every sample. Otherwise empty. The mesh's extra vertices are not samples.