Verifies that a point lies on a surface.
rhinoscriptsyntax.IsPointOnSurface (object_id, point)
rhinoscript.surface.IsPointOnSurface (object_id, point)
object_id |
Required. String or Guid. The object's identifier. |
point |
Required. List of 3 numbers or Point3d. The test, or sampling, point. |
Boolean |
True if successful, otherwise False. |
import rhinoscriptsyntax as rs
surf = rs.GetObject("Select a surface")
if rs.IsSurface(surf):
point = rs.GetPoint("Pick a test point")
if point:
if rs.IsPointOnSurface(surf, point):
print "The point is on the surface."
else:
print "The point is not on the surface."