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) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public bool Constrain(
	Brep brep,
	int wireDensity,
	int faceIndex,
	bool allowPickingPointOffObject
)

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.
See Also