Reputation: 1147
I have an export in xml
of a viewpoint from a Navisworks file. I've find nothing about how to load it in my web viewer with the API.
I've found this SO but it do not help me a lot : how I can see view points in Autodeskforge
How can I do it?
Upvotes: 0
Views: 187
Reputation: 2196
Finally, I got Model Derivative API has translated the data of saved viewpoints now, and Forge Viewer provides the APIs to get those presets cameras. They are stored at:
presets_cams = NOP_VIEWER.model.getData().cameras
Then, you can switch current view to that of the predefined saved viewpoint:
NOP_VIEWER.impl.setViewFromCamera(presets_cams[index]);
Upvotes: 2