RhinoViewportGetDepth Method (BoundingBox, Double, Double) |
Gets near and far clipping distances of a bounding box.
Namespace:
Rhino.Display
Assembly:
RhinoCommon (in RhinoCommon.dll)
Syntaxpublic bool GetDepth(
BoundingBox bbox,
out double nearDistance,
out double farDistance
)
Public Function GetDepth (
bbox As BoundingBox,
<OutAttribute> ByRef nearDistance As Double,
<OutAttribute> ByRef farDistance As Double
) As Boolean
Parameters
- bbox
- Type: Rhino.GeometryBoundingBox
The bounding box. - nearDistance
- Type: SystemDouble
The near distance is assigned to this out parameter during this call. - farDistance
- Type: SystemDouble
The far distance is assigned to this out parameter during this call.
Return Value
Type:
Boolean
true if the bounding box intersects the view frustum and near_dist/far_dist were set.
false if the bounding box does not intesect the view frustum.
Version InformationRhino for Mac
Supported in: 5.4
Rhino for Windows
Supported in: 6.8
See Also