在Autodesk Viewer中查找可见零件的中心点 [英] Finding the centre point of the visible parts in the Autodesk Viewer

查看:101
本文介绍了在Autodesk Viewer中查找可见零件的中心点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请原谅这个问题的模糊性,但是在查看器中的模型中,我想知道如何确定可见部分的中心点.当我对具有隐藏部分的模型进行适合视图的调用时,可以在查看器中看到一个点,该点似乎恰好代表了这一点-可见部分的中心-如何在代码中检索该点的坐标?

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?

推荐答案

绿色小点代表摄像机的目标".您可以使用viewer.navigation.getTarget()获取其坐标.

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

这篇关于在Autodesk Viewer中查找可见零件的中心点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆