SurfacePointCount

Returns the control points count of a surface object.

Syntax

rhinoscriptsyntax.SurfacePointCount (surface_id)

rhinoscript.surface.SurfacePointCount (surface_id)

Parameters

surface_id

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

Returns

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.

Example

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]

Also See

IsSurface

SurfacePoints