How to zoom into an area within the viewport?
#4
Your plan is to create a list of Visual3D objects that you will pass to the FitIntoView method.

If you want a rectangular selection, then you can use the 2 techniques described in the Rectangular selection sample.

If you want to support free form selection, then it would be probably best to render the scene to object id bitmap where the colors in the bitmap define the ids of the objects. Then with some 2D technique, you check the pixel colors (ids) in the selected area. Apart from a general advice to search the internet on how to do that, I cannot help you more.
Andrej Benedik
  


Messages In This Thread
RE: How to zoom selection? - by abenedik - 03-03-2021, 07:51 PM
RE: How to zoom selection? - by Somanna - 03-11-2021, 06:08 PM
RE: How to zoom into an area within the viewport? - by abenedik - 03-12-2021, 09:42 AM

Forum Jump:


Users browsing this thread:
2 Guest(s)