|
![](/i/fill.gif) |
In article <38C729F2.FF588583@faricy.net>, David Fontaine
<dav### [at] faricy net> wrote:
> cylinder { <0,0,0>,<1,0,0>,n rotate bla*y } //correct?
> then the end point will be <sin(bla),0,cos(bla)>
I prefer:
cylinder { <0,0,0>,<1,0,0>,n rotate bla*y}
The end point will be vrotate(<1,0,0>, bla*y)
Note that your solution should be <sin(degrees(bla)), 0,
cos(degrees(bla))>, unless you specify your angles in radians. But
vrotate works for any rotation, instead of just a rotation around an
axis, so I would recommend you use it. It also makes your code easier to
figure out when you come back to it after abandoning it for a week.
--
Chris Huff
e-mail: chr### [at] yahoo com
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
![](/i/fill.gif) |