Get ids/objects in active vp frustum

As in topic. I’m wondering if there is already any clever way to select objects only by being in frustum? Or just need to work it out step by step - just asking to not to “reinvent the wheel”.

Hi,

Did you try
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_DocObjects_RhinoObject_IsActiveInViewport.htm

I’m not sure if the frustum is taken into account though.

-Willem

Hi @Willem,

Thanks for that. I just gave it a try.It is interesting but i need to find out what means IsActive - i thought that it is in “selected/highlighted” state but not and even when another object is faaar from the current field of view and unselected it returns true for it.

BoundingBox visibility is probably what you want to perform
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Display_RhinoViewport_IsVisible.htm

Thanks Steve! Yup this will suit my needs i guess :wink: