loader.load( 'model/S002_001.ply', function ( geometry ) {
geometry.computeVertexNormals();
var material = new THREE.MeshStandardMaterial( { color: 0x0055ff, flatShading: true } );
var mesh = new THREE.Mesh( geometry, material );
// mesh.position.x = -0.2;
mesh.position.y = 0.45;
mesh.position.z = 0;
mesh.rotation.x = - Math.PI / 2;
mesh.scale.multiplyScalar( 0.6 );
mesh.castShadow = true;
// mesh.receiveShadow = true;
scene.add( mesh );
} );
//here instead of loading file statically.can i change the file path in runtime?