List: discuss@lists.openscad.org
From: PhilipJ
converting to sperical coordinates
Thu, Jan 3, 2019 8:49 AM
translate([x1,y1,z1])
{
rotate(a=[a, b, c])
{
cylinder(h=length, d=dia);
}
}
translate is easy, it's just x1,y1,z1 and cylinder length is easy, its is
square root of the sum of (xlength^2)+(ylength^2)+(zlength^2) but I just
can't seem to get the angles to rotate correct.