Returns the control points count of a surface object.
rhinoscriptsyntax.SurfacePointCount (surface_id)
rhinoscript.surface.SurfacePointCount (surface_id)
surface_id |
Required. String or Guid. The object's identifier. |
Tuple |
The number of control points in the U and V directions if successful. (U count, V count) |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a surface")
if rs.IsSurface(obj):
count = rs.SurfacePointCount(obj)
print "Point count in U direction: ", count[0]
print "Point count in V direction: ", count[1]