Click or drag to resize

ViewportInfoGetPointDepth Method

Gets the clipping distance of a point. This function ignores the current value of the viewport's near and far settings. If the viewport is a perspective projection, then it intersects the semi infinite frustum volume with the bounding box and returns the near and far distances of the intersection. If the viewport is a parallel projection, it intersects the infinite view region with the bounding box and returns the near and far distances of the projection.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public bool GetPointDepth(
	Point3d point,
	out double distance
)

Parameters

point
Type: Rhino.GeometryPoint3d
A point to measure.
distance
Type: SystemDouble
distance of the point (can be < 0)

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 intersect the view frustum.
See Also