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

for loop parameter is getting lost when given to a submodule #2

Closed garyhodgson closed 11 years ago

garyhodgson commented 11 years ago
module step(mod)
{
    echo(mod);
    translate([2*mod,0,0])
    cube(mod);
}

for (i = [1:2])
{
  step(i);
}