RemoveCurveKnot

Deletes a knot from a curve object.

Syntax

rhinoscript.curve.RemoveCurveKnot (curve_id, parameter)

Parameters

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.

Returns

Boolean

True of False indicating success or failure.

Example

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 )

Also See

CurveKnotCount

CurveKnots