jscad / OpenJSCAD.org

JSCAD is an open source set of modular, browser and command line tools for creating parametric 2D and 3D designs with JavaScript code. It provides a quick, precise and reproducible method for generating 3D models, and is especially useful for 3D printing applications.
https://openjscad.xyz/
MIT License
2.66k stars 515 forks source link

Minus vector #27

Closed derrickoswald closed 7 years ago

derrickoswald commented 11 years ago

The printed gear bearing scad file:

http://www.thingiverse.com/thing:53451

when converted has an error because of this line:

translate(-[3,2.5])union(){

which cause a barf in the translate() method because of an invalid value.

This can be fixed by distributing the minus sign into the vector:

translate([-3,-2.5])union(){

but the better way would be to have the converter change it to a minus() operator or something.

z3dev commented 7 years ago

This issue was moved to jscad/openscad-openjscad-translator#7