Converts a curve to a polyline curve.
Rhino.ConvertCurveToPolyline (strObject [, dblAngleTolerance [, dblTolerance [, blnDeleteInput [, dlbMinEdgeLength [, dblMaxEdgeLength]]]]])
strObject |
Required. String. The object's identifier. |
dblAngleTolerance |
Optional. Number. The maximum angle between curve tangents at line endpoints. If omitted, the angle tolerance is set to 5.0. |
dblTolerance |
Optional. Number. The distance tolerance at segment midpoints. If omitted, the tolerance is set to 0.01. |
blnDeleteInput |
Optional. Boolean. Delete the curve object specified by strObject. If omitted, strObject will not be deleted. |
dlbMinEdgeLength |
Optional. Number. The minimum segment length. Specify 0.0 (Default) for no minimum limit. |
dblMaxEdgeLength |
Optional. Number. The maximum segment length. Specify 0.0 (Default) for no maximum limit. |
String |
The identifier of the new object if successful. |
Null |
If not successful, or on error. |
Dim strObject, strPolyline
strObject = Rhino.GetObject("Select a curve")
If Rhino.IsCurve(strObject) Then
strPolyline = Rhino.ConvertCurveToPolyline(strObject)
If Not IsNull(strPolyline) Then Rhino.SelectObject(strPolyline)
End If