AddSrfControlPtGrid

Creates a surface from a grid of control points.

Syntax

rhinoscriptsyntax.AddSrfControlPtGrid (count, points, degree=(3,3))

rhinoscript.surface.AddSrfControlPtGrid (count, points, degree=(3,3))

Parameters

count

Required.  Tuple of two numbers.  The number of control points in the U and V directions.

points

Required.  List or tuple.  The 3-D control points.

degree

Optional.  Tuple or two numbers.  The degree of the surface in the U and V directions.  If omitted, the degree of the new surface in the U and V directions will be 3.

Returns

Guid

The identifier of the new object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

count = (5,5)

points = []

for i in range(count[0]):

    for j in range(count[1]):

        points.append( (i*2, j*4, j%3) )

rs.AddSrfControlPtGrid( count, points )

Also See

AddEdgeSrf

AddSrfPt

AddSrfPtGrid