Aligning Coordinate Systems in Autodesk Forge Viewer

独自空忆成欢 提交于 2019-11-27 08:15:43

问题


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

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?


回答1:


Use viewer.model.getData().globalOffset



来源:https://stackoverflow.com/questions/42148538/aligning-coordinate-systems-in-autodesk-forge-viewer

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