Pauses for user input of a point constrained to a mesh object.
rhinoscriptsyntax.GetPointOnMesh (mesh_id, message=None)
rhinoscript.userinterface.GetPointOnMesh (mesh_id, message=None)
mesh_id |
Required. String or Guid. The object's identifier. |
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
mesh = rs.GetObject("Pick a mesh", rs.filter.mesh)
if mesh:
point = rs.GetPointOnMesh(mesh, "Point on mesh")
if point: rs.AddPoint( point )