Tolerance.update
- Tolerance.update(unit=None, absolute=None, relative=None, angular=None, approximation=None, precision=None, lineardeflection=None, angulardeflection=None)[source]
Update tolerance settings.
Only the provided parameters will be updated; others remain unchanged. Use this method to explicitly modify tolerance settings.
- Parameters:
- unit{“M”, “MM”}, optional
The unit of the tolerance settings.
- absolutefloat, optional
The absolute tolerance.
- relativefloat, optional
The relative tolerance.
- angularfloat, optional
The angular tolerance.
- approximationfloat, optional
The tolerance used in approximation processes.
- precisionint, optional
The precision used when converting numbers to strings.
- lineardeflectionfloat, optional
The maximum distance between a curve/surface and its polygonal approximation.
- angulardeflectionfloat, optional
The maximum curvature deviation.
- Returns:
- None
Examples
>>> from compas.tolerance import TOL >>> TOL.update(absolute=0.001, precision=6) >>> TOL.absolute 0.001 >>> TOL.precision 6 >>> TOL.reset()