Click or drag to resize

CurveToArcsAndLines Method

Converts a curve into polycurve consisting of arc segments. Sections of the input curves that are nearly straight are converted to straight-line segments.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public PolyCurve ToArcsAndLines(
	double tolerance,
	double angleTolerance,
	double minimumLength,
	double maximumLength
)

Parameters

tolerance
Type: SystemDouble
The tolerance. This is the maximum deviation from arc midpoints to the curve. When in doubt, use the document's model space absolute tolerance.
angleTolerance
Type: SystemDouble
The angle tolerance in radians. This is the maximum deviation of the arc end directions from the curve direction. When in doubt, use the document's model space angle tolerance.
minimumLength
Type: SystemDouble
The minimum segment length.
maximumLength
Type: SystemDouble
The maximum segment length.

Return Value

Type: PolyCurve
PolyCurve on success, null on error.
Version Information

Rhino for Windows

Supported in: 6.6
See Also