algorithmic modeling for Rhino
Hi everybody, I'm getting a solution exception from the Python component when using the rhinoscript function IsPointOnSurface. The exception is thrown only when the point lies on the surface, otherwise it works.
I've tested this script in the Python interpreter in Rhino and it's ok:
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."
I'm new to scripting so I'm probably missing something obvious
Tags:
Hi Naruto, thank you for the reply, I thought Grasshopper would automatically convert the input srf into a GUID, however I found switching Type hint to GHDOC worked
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by