Pauses for user input of a point constrained to a surface or polysurface object.
rhinoscriptsyntax.GetPointOnSurface ( surface_id, message=None )
rhinoscript.userinterface.GetPointOnSurface ( surface_id, message=None )
surface_id |
Required. Identifier of the surface to get a point on. |
message |
Optional. String. A prompt or message. |
Point3d |
The 3-D point selected by the user successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
surface = rs.GetObject("Pick a surface")
if surface:
point = rs.GetPointOnSurface(surface, "Point on surface")
if point: rs.AddPoint(point)