BrepDeviationSample

References
public sealed class BrepDeviationSample
A point that Brep.ComputeDeviation(Brep, Brep, double, BrepDeviationOptions) sampled on the measured Brep.

Properties

Component

#
public ComponentIndex Component { get; }
The face or edge of the measured Brep that the point is on. ComponentIndex.Unset in an empty sample.

CounterpartComponent

#
public ComponentIndex CounterpartComponent { get; }
The face, edge or vertex of the other Brep closest to the point. When the line ends on the tangent plane of a face at a naked edge, that face. ComponentIndex.Unset in an empty sample.

CounterpartParameters

#
public Point2d CounterpartParameters { get; }
The parameters on CounterpartComponent: (s,t) on a face, s on an edge with t unset, both unset at a vertex. When the line ends on the tangent plane of a face at a naked edge, the parameters of the edge's point on that face.

Deviation

#
public double Deviation { get; }
The length of Line. NaN in an empty sample.

HasCounterpart

#
public bool HasCounterpart { get; }
False where the other Brep does not overlap the measured one.

Line

#
public Line Line { get; }
From the point towards the other Brep. Its length is the deviation. Line.Unset in an empty sample. Not valid where the deviation is zero, so test Deviation, not Line.IsValid.

Parameters

#
public Point2d Parameters { get; }
The point's parameters on Component: (s,t) on a face, s on an edge, with t unset. When BrepDeviationMeasure.Maximum is moved to an edge, s is the parameter of the closest point on the edge, within the tolerance of the line's start.