RemoveSurfaceKnot - PYTHON 不支持

Deletes a knot-line from a surface object.

语法

Rhino.RemoveSurfaceKnot (strObject, arrParameter, intDirection)

参数

strObject

Required.字符串。The identifier of the surface object.

dblParameter

Required.Array.An array containing a U,V parameter on the surface.Note, if the parameter is not equal to one of the existing knots, then the knot closest to the specified parameter will be removed.

intDirection

Required.Number.The direction for knot insertion, either 0 = U, or 1 = V.

返回值

Boolean

True of False indicating success or failure.

Null

On error.

示例

Const rhObjectSurface = 8

Dim strObject, arrPoint, arrParameter

strObject = Rhino.GetObject("Select surface for knot removal", rhObjectSurface)

If Not IsNull(strObject)Then

arrPoint = Rhino.GetPointOnSurface(strObject, "Point on surface to remove knot")

  If IsArray(arrPoint) Then

    arrParameter = Rhino.SurfaceClosestPoint(strObject, arrPoint)

    Rhino.RemoveSurfaceKnot strObject, arrParameter, 0

  End If

End If

同见

SurfaceKnotCount

SurfaceKnots