Click or drag to resize

ViewportInfoGetSphereDepth Method

Gets near and far clipping distances of a bounding sphere.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
public bool GetSphereDepth(
	Sphere sphere,
	out double nearDistance,
	out double farDistance


Type: Rhino.GeometrySphere
The sphere to sample.
Type: SystemDouble
Near distance of the sphere (can be < 0)
Type: SystemDouble
Far distance of the sphere (can be equal to near_dist)

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.20
See Also