[OpenSCAD] finding angle from a coordinate

Ronaldo Persiano rcmpersiano at gmail.com
Wed Oct 12 22:01:04 EDT 2016


You may try this solution:
Drawing lines...
<https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Tips_and_Tricks#Drawing_.22lines.22_in_OpenSCAD>


2016-10-12 22:26 GMT-03:00 tony873004 <tony at gravitysimulator.com>:

> I have a column with a radius of 1.
> The column's base is located at 0,0,0, and its top is located at 3,4,5.
> As I understand it, to orient the column I need to use rotate, rather than
> specify the endpoint.
> [code]
> translate([0,0,0]) {
>   rotate([a,b,c]) {
>     cylinder(r = 1, h = 7.071);
> }
> }
> [/code]
> How would I go about finding the angles a,b,c, knowing the endpoint?
> Thanks!
>
>
>
>
> --
> View this message in context: http://forum.openscad.org/
> finding-angle-from-a-coordinate-tp18684.html
> Sent from the OpenSCAD mailing list archive at Nabble.com.
>
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20161012/089b7cdb/attachment-0002.html>


More information about the Discuss mailing list