List: discuss@lists.openscad.org
From: Felipe Sanches
Re: [OpenSCAD] finding angle from a coordinate
Thu, Oct 13, 2016 1:55 AM
decompose it into a couple rotates and use some trigonometry:
$fn=30;
X = 3;
Y = 4;
Z = 5;
R = 1;
rotate([0,0,atan(Y/X)])
rotate([0, atan(sqrt(X*X + Y*Y) / Z), 0])
cylinder(r = R, h = sqrt(X*X + Y*Y + Z*Z));
color("red")
translate([X,Y,Z])
sphere(r=R);
2016-10-12 22:26 GMT-03:00 tony873004 :
> I have a column with