GetPoint.Constrain Method (Brep, Int32, Int32, Boolean)

GetPointConstrain Method (Brep, Int32, Int32, Boolean)

Constrains the picked point to lie on a brep.

Namespace:  Rhino.Input.Custom
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool Constrain(
	Brep brep,
	int wireDensity,
	int faceIndex,
	bool allowPickingPointOffObject
)
Public Function Constrain ( 
	brep As Brep,
	wireDensity As Integer,
	faceIndex As Integer,
	allowPickingPointOffObject As Boolean
) As Boolean

Parameters

brep
Type: Rhino.GeometryBrep
A brep to use as constraint.
wireDensity
Type: SystemInt32
When wire_density<0, isocurve intersection snapping is turned off, when wire_density>=0, the value defines the isocurve density used for isocurve intersection snapping.
faceIndex
Type: SystemInt32
When face_index <0, constrain to whole brep. When face_index >=0, constrain to individual face.
allowPickingPointOffObject
Type: SystemBoolean
defines whether the point pick is allowed to happen off object. When false, a "no no" cursor is shown when the cursor is not on the object. When true, a normal point picking cursor is used and the marker is visible also when the cursor is not on the object.

Return Value

Type: Boolean
true if constraint could be applied.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also