|
![](/i/fill.gif) |
On Wed, 05 Dec 2001 10:05:06 -0500, Timothy R. Cook wrote:
> Is there a way to rotate an object around its local coordinate
> axes? What I have is this:
In general, you do local transformations before global ones. If it's
too late for that, you need to transform by the inverse of whatever the
global one was, then do the local, then transform by the global one again.
I once wrote some macros to handle local and global transforms in a
somewhat intuitive way. They didn't work in 3.1, due to a parser bug
in the transform{} statement, but they should work in 3.5. If you'd
like, I can dig them up; they're on this server somewhere.
--
#local R=<7084844682857967,0787982,826975826580>;#macro L(P)concat(#while(P)chr(
mod(P,100)),#local P=P/100;#end"")#end background{rgb 1}text{ttf L(R.x)L(R.y)0,0
translate<-.8,0,-1>}text{ttf L(R.x)L(R.z)0,0translate<-1.6,-.75,-1>}sphere{z/9e3
4/26/2001finish{reflection 1}}//ron.parker@povray.org My opinions, nobody else's
Post a reply to this message
|
![](/i/fill.gif) |