
Some wrapper functions to ease the translation from OpenSCAD (.scad) to OpenJsCad (.jscad).LATEST VERSION IS AT https://github.com/Spiritdude/OpenSCAD.jscadExample Go to http://joostn.github.com/OpenJsCad/processfile.html and paste openscad.jscad in there.Purpose OpenJsCad is object oriented, and usually this imposes more verbosity of the source-code, whereas OpenSCAD has a simple syntax many developers are familiar with already, but unfortunately OpenJsCad introduced non-intuitive equivalents (essentially one has to memorize a new set of arguments), therefore a few brief wrapping functions (openscad.jscad) provide a much easier translation of existing .scad to .jscad files:// example.scad:the same in .jscad:Essentially whenever named arguments in .scad appear func(a=1), translate it into func({a:1}), for example:.scad: translate([0,0,2]) sphere(size=2,$fn=50); .jscad: translate([0,0,2], sphere({size:2,fn:50}));Also: cube(); // 1x1x1 cube(2); // 2x2x2 cube([1,2,3]); // 1x2x3 cube({size: [1,2,3]}); // dito cube({size:1, center: false}); That's all for now,Rene K. Mueller 2013/02/28PS: linear_extrude() and rotate_extrude() equivalents aren't implemented yet.
- 0 inches x 0 inches x 0 inches
- this product is 3D printed
- 16 available colors
- material is a strong plastic
- free delivery by May 05
- 0 parts
