SurfaceDomain

Returns the domain of a  surface object in the specified direction.

Syntax

rhinoscriptsyntax.SurfaceDomain (objectId, direction)

rhinoscript.surface.SurfaceDomain (objectId, direction)

Parameters

objectId

Required.  String.  The object's identifier.

direction

Required.  Number.  The direction, either 0 = U, or 1 = V.

Returns

list

A list containing the domain interval in the specified direction if successful.

Null

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

object = rs.GetObject("Select a surface", rs.filter.surface)

if rs.IsSurface(object):

    domainU = rs.SurfaceDomain(object, 0)

    domainV = rs.SurfaceDomain(object, 1)

    print "Domain in U direction: ", domainU

    print "Domain in V direction: ", domainV

Also See

IsSurface

SurfaceDegree