Camera FitIntoView is slow (200 ms)
#3
(03-10-2021, 11:58 AM)abenedik Wrote: FitIntoView method has multiple arguments that can control how the method works.

By default its fitIntoViewType is set to CheckAllPositions. When the scene has models with many positions it can take quite long to check all positions.

To make the method work faster, can set the fitIntoViewType to CheckBounds - this will check only bouding boxes of each Model3D.

There are also some other overloads of FitIntoView - for example one takes a IList<Visual3D> visuals so you can specify on which Visual3D objects you want to do the check.

Thank you for the reply. We are aware of the params that can be used. We found that CheckBounds did not make much difference to the timing. Supplying the List is what we are currently doing - the coding example I included is for just a box.
  


Messages In This Thread
RE: Camera FitIntoView is slow (200 ms) - by NigelAston - 03-10-2021, 01:26 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)