RhinoCommon API
RenderPrimitiveListTryGetSphere Method |
Call this method to get a box at the specified index.
Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool TryGetSphere( int index, out Sphere sphere )
Public Function TryGetSphere ( index As Integer, <OutAttribute> ByRef sphere As Sphere ) As Boolean
Parameters
- index
- Type: SystemInt32
The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count. - sphere
- Type: Rhino.GeometrySphere
Will contain the sphere at the requested index if the index is in range and the primitive at the requested index is a box.
Return Value
Type: BooleanReturn true if the index is in range and the primitive at the requested index is a box otherwise returns false.

Rhino for Windows
Supported in: 6.8