简体   繁体   中英

How to set all properties for viewer.getCamera() in Autodesk Forge

I use the markup extension for Autodesk forge. When i want to show markups with separate layers, i get camera positions and rotate model with that position. But when i move model in show mode and after when i want to see another markup layer, the model positions changes. How can i fix this problem.

请使用const viewState = viewer.getState({ viewport: true })来捕获当前的相机状态,并通过viewer.restoreState( viewState )恢复它

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM