Skip to content
Snippets Groups Projects
Commit aa294d2d authored by amandaghassaei's avatar amandaghassaei
Browse files

scaling

parent aedb4982
No related branches found
No related tags found
No related merge requests found
...@@ -154,9 +154,10 @@ var partMaterial = new THREE.MeshLambertMaterial({ color:0xffffff, shading: THRE ...@@ -154,9 +154,10 @@ var partMaterial = new THREE.MeshLambertMaterial({ color:0xffffff, shading: THRE
unitPartGeo = geometry; unitPartGeo = geometry;
unitPartGeo.computeBoundingBox(); unitPartGeo.computeBoundingBox();
var unitScale = 0.7/unitPartGeo.boundingBox.max.y; var unitScale = 0.706/unitPartGeo.boundingBox.max.y;
unitPartGeo.applyMatrix(new THREE.Matrix4().makeScale(unitScale, unitScale, unitScale)); unitPartGeo.applyMatrix(new THREE.Matrix4().makeScale(unitScale, unitScale, unitScale));
unitPartGeo.applyMatrix(new THREE.Matrix4().makeRotationY(Math.PI)); unitPartGeo.applyMatrix(new THREE.Matrix4().makeRotationY(Math.PI));
unitPartGeo.applyMatrix(new THREE.Matrix4().makeTranslation(0,0,0.09));
}); });
function DMAEdgeVoxPart(type, parent){ function DMAEdgeVoxPart(type, parent){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment