ViewCube旋转90度

时间:2017-10-10 13:54:25

标签: autodesk-forge autodesk-viewer

我想知道有可能使用像ViewCube箭头动作这样的JS动作进行90度旋转:

enter image description here

我知道我可以操纵

viewer.setViewCube("left")

但为了达到我的目的,我必须做一次左手,然后第二次再次登顶。但是在这些步骤之间我需要等待第一次操作的动画结束。对我来说最好的是90度旋转,但我没有找到它的任何API调用

1 个答案:

答案 0 :(得分:0)

您可以将面部组合传递给该方法,请参阅源代码中的注释:

 /**
 * Set the face of ViewCube and apply camera transformation according to it.
 * @param {string} face - The face name of ViewCube. The name can contain multiple face names,
 * the format should be `"[front/back], [top/bottom], [left/right]"`.
 */
 Viewer3D.prototype.setViewCube = function(face)