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

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

问题描述

请原谅这个问题的含糊不清,但在查看器中的模型中,我想知道如何建立可见部分的中心点.当我在具有隐藏部分的模型上调用适合视图时,我可以看到查看器中出现一个点,它似乎完全代表了这个 - 可见部分的中心 - 我如何在代码中检索该点的坐标?

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 查看器中查找可见部件的中心点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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