Click or drag to resize

CurveToPolyline Method (Double, Double, Double, Double)

Gets a polyline approximation of a curve.

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

Parameters

tolerance
Type: SystemDouble
The tolerance. This is the maximum deviation from line 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 line directions. 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: PolylineCurve
PolyCurve on success, null on error.
Version Information

Rhino for Windows

Supported in: 6.2
See Also