Returns or sets the document's absolute tolerance parameter. Absolute tolerance is measured in drawing units. See Rhino's DocumentProperties command (Units and Page Units windows) for details.
rhinoscriptsyntax.UnitAbsoluteTolerance (tolerance=None, in_model_units=True)
rhinoscript.document.UnitAbsoluteTolerance (tolerance=None, in_model_units=True)
tolerance |
Optional. Number. The absolute tolerance in drawing units. |
in_model_units |
Optional. Boolean. Return or modify the document's model units (True) or the document's page units (False). The default is True. |
Number |
If tolerance is not specified, the current absolute tolerance if successful. |
Number |
If tolerance is specified, the previous absolute tolerance if successful. |
import rhinoscriptsyntax as rs
tol = rs.UnitAbsoluteTolerance()
if tol<0.01:
rs.UnitAbsoluteTolerance( 0.01 )