CurveToLineWithTolerance (geometry)#
Returns a polygonal approximation of a geometry instance that contains circular arc segments.
Syntax#
.CurveToLineWithTolerance ( tolerance, relative )
Arguments#
tolerance
Is a double expression that defines the maximum error between the original circular arc segment and its linear approximation.
tolerance
Is a bool expression that indicates whether to use a relative maximum for the deviation. When relative is set to false (0), then an absolute maximum is set for the deviation that a linear approximate can have. When relative is set to true (1) then the tolerance is calculated as a product of the tolerance parameter and the diameter of the bounding box for the spatial object.
Return type#
geometry
Exceptions#
Setting tolerance <= 0 throws an ArgumentOutOfRange exception.