Commit 8808139c authored by amandaghassaei's avatar amandaghassaei

stl export

parent ae058a37
......@@ -344,6 +344,7 @@ define(['underscore', 'three', 'threeModel', 'lattice', 'appState', 'globals', '
DMACell.prototype.getVisibleGeometry = function(){//for save stl
var geometry = [];
if (this.isTransparent) return geometry;
if (!this.object3D.visible) return geometry;
var meshes = _.filter(this.object3D.children, function(child){
return child.visible && child instanceof THREE.Mesh
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