AbstractCamera.contains() behavior

Hi,



I get some trouble to find out which object are contained in camera frustum. I tried to call the Camera.contains() method, but then 'culled' functionality does not work anymore (all objects are paint each time), because a call on this method change the internal state of the Camera (planeState variable in AbstractCamera). My workaround is actually to save and restore 'planeState' each time I call the 'contains()' method.



My question is : should I use this function this way or is there an alternative?



Thanks for your response.

Regards,

Frederic

Saving and restoring the planeState is how we use the contains method internally as well.

Thank you for the response.



Fr