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
)
Protected Overridable Function NeighborGrip (
gripIndex As Integer,
dr As Integer,
ds As Integer,
dt As Integer,
wrap As Boolean
) As GripObject
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:
GripObjectPointer to the desired neighbor or NULL if there is no neighbor.
See Also