garyhodgson / openscad.net

OpenSCAD.net is a partial port of OpenSCAD for the web. Powered by OpenJsCad, it uses the familiar OpenSCAD syntax to allow many OpenSCAD models to be rendered, and saved as STL, via the browser.
https://garyhodgson.github.io/openscad.net/
51 stars 8 forks source link

RangeError: Maximum call stack size exceeded #11

Open garyhodgson opened 11 years ago

garyhodgson commented 11 years ago

Following scad/jscad (https://gist.github.com/garyhodgson/5367679) creates the following exception...

RangeError: Maximum call stack size exceeded
    at Object.CSG.Plane.splitPolygon (http://localhost/openscad.net/js/lib/csg.js)
    at Object.CSG.PolygonTreeNode.splitByPlane (http://localhost/openscad.net/js/lib/csg.js:2973:35)
    at http://localhost/openscad.net/js/lib/csg.js:3198:23
    at Array.map (native)
    at Object.CSG.Node.addPolygonTreeNodes (http://localhost/openscad.net/js/lib/csg.js:3197:22)
    at Object.CSG.Node.addPolygonTreeNodes (http://localhost/openscad.net/js/lib/csg.js:3208:17)
    at Object.CSG.Node.addPolygonTreeNodes (http://localhost/openscad.net/js/lib/csg.js:3208:17)
    at Object.CSG.Node.addPolygonTreeNodes (http://localhost/openscad.net/js/lib/csg.js:3208:17)
    at Object.CSG.Node.addPolygonTreeNodes (http://localhost/openscad.net/js/lib/csg.js:3208:17)
    at Object.CSG.Node.addPolygonTreeNodes (http://localhost/openscad.net/js/lib/csg.js:3208:17)