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 instersects the
infinte view region with the bounding box and returns the
near and far distances of the projection.
RhinoCommon (in RhinoCommon.dll)
public bool GetPointDepth(
out double distance
Public Function GetPointDepth (
point As Point3d,
<OutAttribute> ByRef distance As Double
) As Boolean
- Type: Rhino.GeometryPoint3d
A point to measure.
- Type: SystemDouble
distance of the point (can be < 0)
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.