scad: the second and third angles to rotate are reversed #34

Closed
tolomea opened this Issue Mar 4, 2012 · 0 comments

Comments

Projects
None yet
2 participants
Contributor

tolomea commented Mar 4, 2012

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

@tolomea tolomea referenced this issue Mar 4, 2012

Merged

scad rotate fixes #35

@colah colah closed this Dec 19, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment