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)
Since: 6.0
public PolyCurve ToArcsAndLines(
	double tolerance,
	double angleTolerance,
	double minimumLength,
	double maximumLength


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.
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.
Type: SystemDouble
The minimum segment length.
Type: SystemDouble
The maximum segment length.

Return Value

Type: PolyCurve
PolyCurve on success, null on error.
See Also