Click or drag to resize

GetPointConstrain Method (Brep, Int32, Int32, Boolean)

Constrains the picked point to lie on a brep.

Namespace:  Rhino.Input.Custom
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
public bool Constrain(
	Brep brep,
	int wireDensity,
	int faceIndex,
	bool allowPickingPointOffObject


Type: Rhino.GeometryBrep
A brep to use as constraint.
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.
Type: SystemInt32
When face_index <0, constrain to whole brep. When face_index >=0, constrain to individual face.
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.
See Also