Deletes a knot from a curve object.
rhinoscript.curve.RemoveCurveKnot (curve_id, parameter)
curve_id |
Required. String or Guid. The identifier of the curve object. |
parameter |
Required. Number. The parameter on the curve. Note, if the parameter is not equal to one of the existing knots, then the knot closest to the specified parameter will be removed. |
Boolean |
True of False indicating success or failure. |
import rhinoscriptsyntax as rs
curve = rs.GetObject("Select curve for knot removal", rs.filter.curve)
if( curve!=None ):
point = rs.GetPointOnCurve(curve, "Point on curve to remove knot")
if( point!=None ):
parameter = rs.CurveClosestPoint(curve, point)
rs.RemoveCurveKnot( curve, parameter )