POV-Ray : Newsgroups : povray.general : grouping transforms into one final rotation? : Re: grouping transforms into one final rotation? Server Time
2 Jun 2024 02:04:39 EDT (-0400)
  Re: grouping transforms into one final rotation?  
From: Kenneth
Date: 16 Sep 2018 18:35:00
Message: <web.5b9ed6dc81dcebf3a47873e10@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
>
>What would be the easiest magic way (or built-in tool) to combine the
> original rotation with the transforms?

Wait...

Maybe there *is* a simple way:

Instead of the original rotation being...
#declare ROTATION_1 = <50,100,150>;

.... I could change it to
#declare TRANS_1 =
transform{rotate <50,100,150>}

.... then combine ALL the tranforms like this...

#declare NEW_ROTATION =
tranform{
transform{TRANS_1}
transform{MY_TRANSFORM_1} // the #if/rotate transform
transform{MY_TRANSFORM_2} // ditto
transform{MY_TRANSFORM_3} // ditto
....etc.
}

I suppose the result could be used in a #debug statement too. (I've been
thinking about this stuff for *way* too long, not seeing the obvious.)

I guess this scheme would work?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.