【发布时间】:2021-12-03 08:01:31
【问题描述】:
我用以下设置制作了一些新模型:
this.cubeSetup = {
id: "AB0014",
position: [4, -5, 2],
rotation: [0, 135, 0],
};
this.cube1.matrix = new THREE.Matrix4().compose(
new THREE.Vector3(position[0], position[1], position[2]),
new THREE.Quaternion(0, rotation[1], 0, 1),
new THREE.Vector3(1, 1, 1)
);
我会点击它并再次显示信息。我尝试使用 getPlacementTransform().decompose 但结果在坐标 x: 0, y: 0, z: 0 中。
第二个问题,我使用 Autodesk.gltf 加载了一个人体模型。是否可以替换模型的dbId?我想使用 API id,当点击模型时会显示它的信息。我试过了,还是不行。
【问题讨论】:
标签: autodesk-forge autodesk-viewer