I have a custom loaded object in three.js. I want to change dynamically its geometry by inputs' values and change distance from camera to the object.
Could someone help me how to automatically zoom in/out camera when object changes its dimensions so that the object will be fully located on the screen?