jscad / io

DEPRECATED : Input Output handling for JSCAD (see the link below)
https://github.com/jscad/OpenJSCAD.org/tree/V2/packages
34 stars 13 forks source link

fix: corrected polygonToTriangles when polygon has less then 3 vertices #68

Closed z3dev closed 6 years ago

z3dev commented 6 years ago

As part of enabling DXF output of 3D objects via OpenJSCAD.org, this bug was found. Obviously, the 3D objects are ill formed but the polygonToTriangles() function had a bug.

I'm happy to say that almost all examples can be converted to DXF now. The exception is the Globe example, which will take some time to analyize due to special functions.

z3dev commented 6 years ago

autodesk