Click or drag to resize

RhinoViewportGetDepth Method (Sphere, Double, Double)

Gets near and far clipping distances of a sphere.

Namespace:  Rhino.Display
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool GetDepth(
	Sphere sphere,
	out double nearDistance,
	out double farDistance
)

Parameters

sphere
Type: Rhino.GeometrySphere
The sphere.
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 sphere intersects the view frustum and near_dist/far_dist were set. false if the sphere does not intesect the view frustum.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.2
See Also