SurfaceKnotCount

Returns the knot count of a surface object.

Syntax

rhinoscriptsyntax.SurfaceKnotCount (surface_id)

rhinoscript.surface.SurfaceKnotCount (surface_id)

Parameters

surface_id

Required.  String or Guid.  The object's identifier.

Returns

Tuple

The number of knots in the U and V directions if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select a surface")

if rs.IsSurface(obj):

    count = rs.SurfaceKnotCount(obj)

    print "Knot count in U direction: ", count[0]

    print "Knot count in V direction: ", count[1]

Also See

IsSurface

SurfaceKnots