Haskell-Things / ImplicitCAD

A math-inspired CAD program in haskell. CSG, bevels, and shells; 2D & 3D geometry; 2D gcode generation...
https://implicitcad.org/
GNU Affero General Public License v3.0
1.39k stars 142 forks source link

Download Rendering on website broken #278

Closed hannesweisbach closed 3 years ago

hannesweisbach commented 3 years ago

I tried to render & download the following example from the website (http://www.implicitcad.org/examples/round-plus#) as SVG, but I got only a file containing:

var Shape = function(){
var s = this;
THREE.Geometry.call(this);
function vec(x,y,z){return new THREE.Vector3(x,y,z);}
function v(x,y,z){s.vertices.push(vec(x,y,z));}
function f(a,b,c){s.faces.push(new THREE.Face3(a,b,c));}
v(-5.855059e-1,-8.782588e0,3.565074e-1);
v(-5.855059e-1,-9.110735e0,4.8387095e-1);
[…]

So … JavaScript code? Definitely not SVG ;)

julialongtin commented 3 years ago

reproduced. what the heck? ;)

julialongtin commented 3 years ago

ok, fixed. also fixed .OBJ and .DXF exporting, while i was at it.