For example, I want to hide the PointCloud that will only be displayed when it is close enough
Hi -
There is no out-of-the-box function in Rhino to automatically hide or show objects based on proximity to the camera.
-wim
Is there any low-level API that can be implemented? Or is there a plan to make it happen?
Hi @ken_zhang,
You should be able to do this using a custom DisplayConduit.
Something like this perhaps:
protected override void PreDrawObject(DrawObjectEventArgs e)
{
base.PreDrawObject(e);
if (null != e && null != e.RhinoObject)
{
if (IsObjectTooFarFromCamera(e.RhinoObject))
e.DrawObject = false;
}
}
– Dale