Aligning Coordinate Systems in Autodesk Forge View

2019-01-20 14:09发布

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条回答
Ridiculous、
2楼-- · 2019-01-20 14:55

Use viewer.model.getData().globalOffset

查看更多
登录 后发表回答