简体   繁体   English

如何在Autodesk Forge Viewer中的Viewer Cube中显示方向

[英]How to display directions in Viewer Cube in Autodesk Forge Viewer

I have a simple question regarding the Autodesk Forge Viewer 3D. 我对Autodesk Forge Viewer 3D有一个简单的问题。 All the Models have a ViewCube at the top right of the Viewer which makes it easy to orbit around the model. 所有模型在查看器的右上角都有一个ViewCube,可轻松在模型周围旋转。 Suppose if a user is dealing with a model which is related to a real life structure or a building then shouldn't there be a direction indicator for the ViewCube? 假设如果用户正在处理与现实生活结构或建筑物相关的模型,那么ViewCube是否应该没有方向指示器? If there is such option, how to enable or code for it in Autodesk Forge Viewer. 如果有这样的选项,如何在Autodesk Forge Viewer中启用或编码。

I have attached a screen shot of a ViewCube taken form Autodesk Design Review. 我已经附上了Autodesk Design Review拍摄的ViewCube屏幕截图。 I need a similar ViewCube in Autodesk Forge Viewer as well. 我也需要在Autodesk Forge Viewer中使用类似的ViewCube。

Autodesk Design Review中ViewCube的图像

This is a known request and wishlist item logged as LMV-2837 , but it hasn't been implemented yet so far. 这是一个记录为LMV-2837的已知请求和愿望清单项目,但到目前为止尚未实现。 Unfortunately, ViewCube API doesn't be exposed, so you cannot either make it yourself. 不幸的是, ViewCube API并未公开,因此您自己也无法做到。 Apologizing for any inconvenience caused. 不便之处,敬请原谅。

Currently, there is a function GuiViewer3D#showViewCubeTriad for showing the three base axis (XYZ) on the bottom of the ViewCube . 当前,有一个功能GuiViewer3D#showViewCubeTriad用于在ViewCube的底部显示三个基本轴(XYZ)。

viewer.showViewCubeTriad( true );

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM