Click or drag to resize

GetPointSnap Method

Calculates the point the current object snap settings would produce, in the specified view, given a test point. This function does not prompt.

Namespace:  Rhino.Input.Custom
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public static bool Snap(
	RhinoView view,
	Point3d testPoint,
	out Point3d snapPoint,
	out OsnapModes osnapMode
)

Parameters

view
Type: Rhino.DisplayRhinoView
The view in which to snap.
testPoint
Type: Rhino.GeometryPoint3d
The world coordinate point to snap.
snapPoint
Type: Rhino.GeometryPoint3d
The snapped point. If no object snap applied, then testPoint is returned.
osnapMode
Type: Rhino.ApplicationSettingsOsnapModes
The type of object snap used to obtain the point. If no object snap applied, then OsnapModes.None is returned.

Return Value

Type: Boolean
true if successful, false otherwise.
See Also