RhinoCommon API
CurveToPolyline Method (Double, Double, Double, Double) |
Gets a polyline approximation of a curve.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public PolylineCurve ToPolyline( double tolerance, double angleTolerance, double minimumLength, double maximumLength )
Public Function ToPolyline ( tolerance As Double, angleTolerance As Double, minimumLength As Double, maximumLength As Double ) As PolylineCurve
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: PolylineCurvePolyCurve on success, null on error.

Rhino for Windows
Supported in: 6.8