POV-Ray : Newsgroups : povray.general : grouping transforms into one final rotation? : Re: grouping transforms into one final rotation? Server Time
2 Jun 2024 02:20:53 EDT (-0400)
  Re: grouping transforms into one final rotation?  
From: clipka
Date: 16 Sep 2018 20:21:16
Message: <5b9ef37c$1@news.povray.org>
Am 17.09.2018 um 00:31 schrieb Kenneth:
> "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?

Should do, definitely.
I was just about to suggest something along those lines.


Post a reply to this message

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