Closed quintesse closed 7 years ago
I'm not surprised. The SCAD script translator is pretty old.
Have you tried converting the code to JSCAD? It's not that hard. Maybe 45 minutes by hand.
I made the example as small as possible to reproduce the error for this bug report, but the original file is many many times larger. And the original already works, so why waste time converting it? For existing .scad files I'll stick to OpenSCAD for now.
If you change difference() to union() then you'll see the cubes are offset incorrectly, below the flange.
I tried several different combinations of translate, etc. Nothing worked.
Looks like a bug in the translator. I don't think this will be fixed. Sorry.
This issue was moved to jscad/openscad-openjscad-translator#17
The following OpenSCAD code gets rendered incorrectly:
The second arm should be simply a rotated version of the first (with the "teeth" pointing outward). It so renders in OpenSCAD but not in OpenJSCAD.