|
![](/i/fill.gif) |
In article <3906b3c9@news.povray.org>, Warp <war### [at] tag povray org>
wrote:
> Suppose that I have this:
>
> #declare MyObject=
> box
> { 0, 1
> rotate x*30
> texture { Whatever }
> scale <1,.5,1> translate x*10 rotate y*60
> }
>
> How should I declare the transformations so that I could apply them to
> MyObject as above and the use the sum of all those transformations (for
> example inverted)?
#declare TransA = transform {rotate x*30}
#declare TransB = transform {scale <1,.5,1> translate x*10 rotate y*60}
#declare InvTrans =
transform {
transform {TransA}
transform {TransB}
inverse
}
#declare MyObject=
box { 0, 1
transform {TransA}
texture { Whatever }
transform {TransB}
}
Using the additional syntax of my patch, of course.
--
Christopher James Huff - Personal e-mail: chr### [at] yahoo com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |