SurfaceEditPoints

Returns the edit, or Greville, points of a surface object.  For each surface control point, there is a corresponding edit point.

Syntax

rhinoscriptsyntax.SurfaceEditPoints (surface_id, return_parameters=False, return_all=True)

rhinoscript.surface.SurfaceEditPoints (surface_id, return_parameters=False, return_all=True)

Parameters

surface_id

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

return_parameters

Optional.  Boolean.  If False (default), edit points are returned as a list of 3-D points. If True, edit points are returned as a list U,V surface parameters.

return_all

Optional.  Boolean.  If True (default) all surface edit points are returned. If False, the function will returned surface edit points based on whether or not the surface is closed or periodic.

Returns

List

If return_parameters is omitted or False, then an array of 3-D edit points if successful.

List

If return_parameters is True, then an array of U,V parameter values if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

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

if rs.IsSurface(obj):

    points = rs.SurfaceEditPoints(obj)

    if points: rs.AddPointCloud(points)

Also See

IsSurface

SurfacePointCount

SurfacePoints