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 = prev grip in the first parameter direction.

ds
Type: SystemInt32

1 = next grip in the second parameter direction.

-1 = prev grip in the second parameter direction.

dt
Type: SystemInt32

1 = next grip in the third parameter direction.

-1 = prev 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.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.5
See Also