update example

This commit is contained in:
casperlamboo 2017-07-18 12:30:56 +02:00
parent 0a041ddae0
commit e54d077db0

View File

@ -12,7 +12,7 @@ const settings = {
const jsonLoader = new THREE.JSONLoader();
jsonLoader.load('models/airplane.json', async geometry => {
geometry.applyMatrix(new THREE.Matrix4().makeRotationX(Math.PI / -2));
geometry.applyMatrix(new THREE.Matrix4().setPosition(new THREE.Vector3(50, 0.1, 50)));
geometry.applyMatrix(new THREE.Matrix4().setPosition(new THREE.Vector3(50, -0.1, 50)));
geometry.computeFaceNormals();
const slicer = new Slicer().setGeometry(geometry);