Returns the domain of a surface object in the specified direction.
rhinoscriptsyntax.SurfaceDomain (objectId, direction)
rhinoscript.surface.SurfaceDomain (objectId, direction)
objectId |
Required. String. The object's identifier. |
direction |
Required. Number. The direction, either 0 = U, or 1 = V. |
list |
A list containing the domain interval in the specified direction if successful. |
Null |
If not successful, or on error. |
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