SurfaceWeights

Returns a list of weight values that are assigned to the control points of a surface.  The number of weights returned will be equal to the number of control points in the U and V directions.

Syntax

rhinoscriptsyntax.SurfaceWeights (object_id)

rhinoscript.surface.SurfaceWeights (object_id)

Parameters

object_id

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

Returns

List

The weight values of the surface if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

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

if rs.IsSurface(surf):

    weights = rs.SurfaceWeights(surf)

    if weights:

        for w in weights:

            print "Surface control point weight value:", w

Also See

IsSurface

SurfacePointCount

SurfacePoints