Click or drag to resize

CustomObjectGripsNeighborGrip Method

Get neighbors.

Namespace:  Rhino.DocObjects.Custom
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
protected virtual GripObject NeighborGrip(
	int gripIndex,
	int dr,
	int ds,
	int dt,
	bool wrap
)

Parameters

gripIndex
Type: SystemInt32
index of grip where the search begins.
dr
Type: SystemInt32

1 = next grip in the first parameter direction.

-1 = previous grip in the first parameter direction.

ds
Type: SystemInt32

1 = next grip in the second parameter direction.

-1 = previous grip in the second parameter direction.

dt
Type: SystemInt32

1 = next grip in the third parameter direction.

-1 = rev grip in the third parameter direction.

wrap
Type: SystemBoolean
If true and object is "closed", the search will wrap.

Return Value

Type: GripObject
Pointer to the desired neighbor or NULL if there is no neighbor.
See Also