Commit 45273243 authored by amandaghassaei's avatar amandaghassaei

export stl working again

parent a65df44d
......@@ -40,7 +40,6 @@ var geometryToSTLBin = function(geometryArray) {
}
} else {
var tris = geometry.faces;
var verts = geometry.vertices;
......
......@@ -271,11 +271,11 @@ define(['underscore', 'three', 'threeModel', 'lattice', 'appState', 'globals', '
//if (meshes.length > 0) {
// var self = this;
// _.each(meshes, function(mesh){
// geometry.push({geo: mesh.geometry, offset:self.getAbsolutePosition(), orientation:mesh.quaternion.clone().multiply(self.getAbsoluteOrientation())});
// geometry.push();
// });
//}
var mesh = this.getHighlightableMesh();
if (mesh.visible) geometry.push(mesh);
var mesh = this.getVisibleMesh();
if (mesh.visible) geometry.push({geo: mesh.geometry, offset:this.getPosition(), orientation:mesh.quaternion.clone().multiply(this.getOrientation())});
return geometry;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment