colah/ImplicitCAD — Issue #34: scad: the second and third angles to rotate are reversed
Author: tolomea
Created: 2012-03-04 02:57:30+00:00
State: open

function rad(x) = x/180.0*3.14159265; // implicitcad
//function rad(x) = x; // openscad

difference()
{
cube(100, center = true);
for (i = [
[0, 0], [90, 0], [180, 0], [270, 0], [0, 90], [0, -90],
]) {
rotate([0, 0, rad(i[0])]) rotate([rad(i[1]), 0, 0]) translate([0, -50, 0]) sphere(10);
}
}

moving rad(i[0]) to the middle position in that list produces the same behavior as openscad