在Autodesk Forge Viewer中对齐坐标系 [英] Aligning Coordinate Systems in Autodesk Forge Viewer

查看:176
本文介绍了在Autodesk Forge Viewer中对齐坐标系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在查看器中显示一些参考线,这些图形在将工程图上载到Forge时默认不显示.

I would like to display some reference lines in the viewer that are not shown by default when a drawing is uploaded to Forge.

我知道模型中定义的直线的确切终点,但是,似乎已平移了查看器中的模型,以使0,0位于边界的中心.

I know the exact end points of the lines as they were defined in the model, however, it seems that the model in the viewer is translated so that 0,0 is in the center of the bounds.

是否有一种方法可以获取应用于模型的变换矩阵,以便在查看器中将参考线的坐标与模型的坐标对齐?

Is there a way to get the transformation matrix that was applied to the model, so I can align the coordinates of my reference lines with the coordinates of the model in the viewer?

推荐答案

使用viewer.model.getData().globalOffset

这篇关于在Autodesk Forge Viewer中对齐坐标系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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