Returns the knot count of a surface object.
rhinoscriptsyntax.SurfaceKnotCount (surface_id)
rhinoscript.surface.SurfaceKnotCount (surface_id)
surface_id |
Required. String or Guid. The object's identifier. |
Tuple |
The number of knots in the U and V directions if successful. |
None |
If not successful, or on error. |
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]