Inability of the web viewer to draw the whole model after we change the position of the model

Hello @dayana,

In your implementation, it looks like the camera is clipping the model in certain sections. This can happen when manually setting the camera attributes and can also occur depending on the model being loaded. One way to solve this is to use the ViewOrientation enum which has pre-defined orientations for the view right out-of-the-box.

If you still want to manually calculate the camera object, we recommend that the distance from the camera position to the camera target is 2.5 times the field width. In a different toolkit, we provide more details on this.

Also available in the forum is this post which provides a short code snippet. Granted, the code is for Visualize but the logic is straigthforward.

Thanks,
Tino