# BrepDeviationSample class

Namespace: [Rhino.Geometry](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.geometry.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public sealed class BrepDeviationSample
```

A point that [Brep.ComputeDeviation(Brep, Brep, double, BrepDeviationOptions)](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brep/computedeviation.md) sampled on the measured Brep.

## Properties

- [Component](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationsample/component.md): The face or edge of the measured Brep that the point is on. ComponentIndex.Unset in an empty sample.
- [CounterpartComponent](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationsample/counterpartcomponent.md): 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](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationsample/counterpartparameters.md): The parameters on [BrepDeviationSample.CounterpartComponent](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationsample/counterpartcomponent.md): (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](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationsample/deviation.md): The length of [BrepDeviationSample.Line](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationsample/line.md). NaN in an empty sample.
- [HasCounterpart](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationsample/hascounterpart.md): False where the other Brep does not overlap the measured one.
- [Line](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationsample/line.md): 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 [BrepDeviationSample.Deviation](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationsample/deviation.md), not Line.IsValid.
- [Parameters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationsample/parameters.md): The point's parameters on [BrepDeviationSample.Component](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationsample/component.md): (s,t) on a face, s on an edge, with t unset. When [BrepDeviationMeasure.Maximum](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationmeasure/maximum.md) is moved to an edge, s is the parameter of the closest point on the edge, within the tolerance of the line's start.
