how I can see view points in Autodeskforge

帅比萌擦擦* 提交于 2019-12-13 07:43:24

问题


We have been working on the web based application using AudeskForge, where we are uploading the file (.rvt,.NWD) files but we can track the ViewPoint in it. On other hand we can see the ViewPoint when we open files in respective applications (Revit, Navizwork).

We have been using audesk-model-derivatives to get the data.

I would like to how I can see view points in forge?

PS:So idea is to get possibly all data and datapoints from the stand-alone software to webbased forge app.


回答1:


Update: 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]);


来源:https://stackoverflow.com/questions/44380480/how-i-can-see-view-points-in-autodeskforge

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!