Verifies a surface object is rational.
rhinoscriptsyntax.IsSurfaceRational (surface_id)
rhinoscript.surface.IsSurfaceRational (surface_id)
surface_id |
Required. String or Guid. The object's identifier. |
Boolean |
True if successful, otherwise False. |
None |
On error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a surface", rs.filter.surface)
if rs.IsSurfaceRational(obj):
print "The surface is rational."
else:
print "The surface is not rational."