Finding the centre point of the visible parts in the Autodesk Viewer

你说的曾经没有我的故事 提交于 2019-12-24 00:21:52

问题


Excuse the vagueness of this question, but in a model in the viewer, I'd like to know how I can establish the centre point of the visible parts. When I call fit-to-view on a model with hidden parts, I can see a dot appear in the viewer which seems to represent exactly this - the centre of the visible parts - how can I retrieve the coordinates of this point in code?


回答1:


The little green dot represents the "target" of the camera. You can get its coordinates using viewer.navigation.getTarget().



来源:https://stackoverflow.com/questions/52761235/finding-the-centre-point-of-the-visible-parts-in-the-autodesk-viewer

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