GetPointOnSurface

Pauses for user input of a point constrained to a surface or polysurface object.

Syntax

rhinoscriptsyntax.GetPointOnSurface ( surface_id, message=None )

rhinoscript.userinterface.GetPointOnSurface ( surface_id, message=None )

Parameters

surface_id

Required. Identifier of the surface to get a point on.

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

surface = rs.GetObject("Pick a surface")

if surface:

    point = rs.GetPointOnSurface(surface, "Point on surface")

    if point: rs.AddPoint(point)

Also See

GetPoint

GetPointOnCurve

GetPointOnMesh

GetPoints