Verifies a surface object is periodic in the specified direction.
rhinoscriptsyntax.IsSurfacePeriodic (surface_id, direction)
rhinoscript.surface.IsSurfacePeriodic (surface_id, direction)
surface_id |
Required. String or guid. The object's identifier. |
direction |
Required. Number. The direction, either 0 = U, or 1 = V. |
Boolean |
True if successful, otherwise False. |
None |
On error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a surface", rs.filter.surface)
if rs.IsSurfacePeriodic(obj, 0):
print "The surface is periodic in the U direction."
else:
print "The surface is not periodic in the U direction."