GetPointOnMesh

Pauses for user input of a point constrained to a mesh object.

Syntax

rhinoscriptsyntax.GetPointOnMesh (mesh_id, message=None)

rhinoscript.userinterface.GetPointOnMesh (mesh_id, message=None)

Parameters

mesh_id

Required.  String or Guid.  The object's identifier.

message

Optional.  String.  A prompt or message.

Returns

Point3d

The 3-D point selected by the user successful.

None

If not successful, or on error.

Example

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 )

Also See

GetPoint

GetPointOnCurve

GetPointOnSurface

GetPoints