03-12-2021, 09:42 AM
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.
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

