AddSrfPtGrid

Creates a surface from a grid of points.

Syntax

rhinoscriptsyntax.AddSrfPtGrid (count, points, degree=(3,3), closed=(False,False))

rhinoscript.surface.AddSrfPtGrid (count, points, degree=(3,3), closed=(False,False))

Parameters

count

Required.  tuple or two numbers.  The number of points in the U and V directions.

points

Required.  tuple or list of  3-D points.

degree

Optional.  tuple of 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.

closed

Optional.  tuple or two booleans.  Whether or not the surface is closed in the U and V directions.  If omitted, the new surface will not be closed in either the U or V directions.

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]):

        pt = i*2, j*4, 0

        points.append(pt)

rs.AddSrfPtGrid(count, points)

Also See

AddEdgeSrf

AddSrfControlPtGrid

AddSrfPt