我正在尝试使用Three.js将网格添加到Forge查看器中。我使用了相同的代码,并且能够在Windows中添加飞机,但在Linux中却没有。
复制该问题的最低代码如下。
const drawingMaterial = new THREE.MeshBasicMaterial( {color: 0xffff00 } );
const planeGeometry = new THREE.PlaneBufferGeometry(400, 200);
const texturePlane = new THREE.Mesh( planeGeometry, drawingMaterial);
texturePlane.material.side = THREE.DoubleSide;
texturePlane.position.z = 0
this.viewer.impl.sceneAfter.add(texturePlane);