Blockscad.Processor.convertToSolid=function(h){if("object"==typeofh&&hinstanceofCAG)h=h.extrude({offset:[0,0,.1]});elseif(!("object"==typeofh&&hinstanceofCSG))if(h.length){console.log("putting them together");for(varm=h[0],n=1;n<h.length;n++)m=m.unionForNonIntersecting(h[n]);h=m}elsethrowError("Cannot convert to solid");returnh};
n.offsetHeight,this.initialViewerDistance)}catch(c){this.picdiv.innerHTML="<b><br><br>Error: "+c.toString()+"</b><br><br>BlocksCAD currently requires Google Chrome or Firefox with WebGL enabled"}$("#picdiv").hide();try{this.rpicviewer=newBlockscad.Viewer(this.rpicdiv,k.offsetWidth,k.offsetHeight,this.initialViewerDistance)}catch(c){this.rpicdiv.innerHTML="<b><br><br>Error: "+c.toString()+"</b><br><br>BlocksCAD currently requires Google Chrome or Firefox with WebGL enabled"}$("#rpicdiv").hide();try{this.viewer=
newBlockscad.Viewer(this.viewerdiv,m.offsetWidth,m.offsetHeight,this.initialViewerDistance)}catch(c){this.viewerdiv.innerHTML="<b><br><br>Error: "+c.toString()+"</b><br><br>BlocksCAD currently requires Google Chrome or Firefox with WebGL enabled"}this.abortbutton=document.getElementById("abortButton");this.renderbutton=document.getElementById("renderButton");this.ongoingrender=document.getElementById("render-ongoing");this.abortbutton.onclick=function(c){h.abort();$("#renderButton").prop("disabled",
n.offsetHeight,this.initialViewerDistance)}catch(c){this.picdiv.innerHTML="<b><br><br>Error: "+c.toString()+"</b><br><br>BlocksCAD currently requires Google Chrome or Firefox with WebGL enabled"}$("#picdiv").addClass("hidden");try{this.rpicviewer=newBlockscad.Viewer(this.rpicdiv,k.offsetWidth,k.offsetHeight,this.initialViewerDistance)}catch(c){this.rpicdiv.innerHTML="<b><br><br>Error: "+c.toString()+"</b><br><br>BlocksCAD currently requires Google Chrome or Firefox with WebGL enabled"}$("#rpicdiv").addClass("hidden");
try{this.viewer=newBlockscad.Viewer(this.viewerdiv,m.offsetWidth,m.offsetHeight,this.initialViewerDistance)}catch(c){this.viewerdiv.innerHTML="<b><br><br>Error: "+c.toString()+"</b><br><br>BlocksCAD currently requires Google Chrome or Firefox with WebGL enabled"}this.abortbutton=document.getElementById("abortButton");this.renderbutton=document.getElementById("renderButton");this.ongoingrender=document.getElementById("render-ongoing");this.abortbutton.onclick=function(c){h.abort();$("#renderButton").prop("disabled",
0,0],[1,0,0],[1,1,0],[0,1,0]])).solidFromSlices(a)};c.fromObject=function(a){a=a.polygons.map(function(a){returnc.Polygon.fromObject(a)});a=c.fromPolygons(a);returna=a.canonicalized()};c.uniqBy=function(a,b){vard={};returna.filter(function(a){a=b(a);returnd.hasOwnProperty(a)?!1:d[a]=!0})};c.fromCompactBinary=function(a){if("CSG"!=a["class"])throwError("Not a CSG");for(varb=[],d=a.planeData,e=d.length/4,f=0,g,l,q,y,k=0;k<e;k++)g=d[f++],l=d[f++],q=d[f++],y=d[f++],g=c.Vector3D.Create(g,l,q),g=