# BrepDeviationOptions 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 BrepDeviationOptions
```

Options for [Brep.ComputeDeviation(Brep, Brep, double, BrepDeviationOptions)](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brep/computedeviation.md).

## Properties

- [BothDirections](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationoptions/bothdirections.md): If true, the deviation is also measured from brepB to brepA. The default is true.
- [CancellationToken](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationoptions/cancellationtoken.md): Checked between samples.
- [KeepSamples](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationoptions/keepsamples.md): If true, [BrepDeviationMeasure.Samples](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationmeasure/samples.md) holds every sample. The default is false.
- [ProgressReporter](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationoptions/progressreporter.md): Receives the fraction done. Can be null.
- [SampleCount](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationoptions/samplecount.md): About this many points are sampled on each Brep that is measured from, spaced by length along the isocurves of its faces and along its edges. The time taken is about proportional to it. The default is 10000.
- [SampleMesh](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationoptions/samplemesh.md): If true, [BrepDeviationMeasure.Mesh](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationmeasure/mesh.md) and [BrepDeviationMeasure.VertexDeviations](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brepdeviationmeasure/vertexdeviations.md) hold the face samples as a mesh, with the deviation at each vertex. The default is false.
