如何在场景中边缘网格物体?这是代码
function initMesh(x, y, z) {
var loader = new THREE.JSONLoader();
loader.load('pleura.js', function(geometry, materials) {
mesh = new THREE.Mesh(geometry, new THREE.MeshFaceMaterial(materials));
mesh.scale.x = x;
mesh.scale.y = y;
mesh.scale.z = z;
mesh.opacity=1;
mesh.translation = THREE.GeometryUtils.center(geometry);
scene.add(mesh);
});}
这会将网格加载到场景的中心。
谢谢!