POV-Ray : Newsgroups : povray.advanced-users : Re: INFO: Inverse : Re: INFO: Inverse Server Time
5 May 2024 16:47:23 EDT (-0400)
  Re: INFO: Inverse  
From: Bob Hughes
Date: 27 Apr 1999 07:30:25
Message: <3725918C.708FD159@aol.com>
No, 'inverse' is specifically for object surface distinctions. At least
this is my call on it. It will only act to change inside/outside.
Transformations (scale, rotate, translate, etc.) are independant of this
keyword.
To switch the transformation order you will no doubt need a set of
switches or some such thing to parse which ones you want ahead of the
other, as in:

 #declare Sw = 1 //set switch

 sphere {0,1
 #switch (Sw)
 #case (1)
  scale <1,1,1>
  rotate <10,10,10>
  translate <20,20,20>
 #break
 #case (2)
  rotate <10,10,10>
  scale <1,1,1>
  translate <20,20,20>
 #break
 #case (3)
  translate <20,20,20>
  scale <1,1,1>
  rotate <10,10,10>
 #break
 #end
 }



Hassoun wrote:
> 
> Hi
> can i use "inverse" to reverse the order (or the sequence) in which
> objects are modified (translated, rotated, scaled)? any info of how to
> do this operation?
> 
> thanks in advance
> Hassoun

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto:inv### [at] aolcom?Subject=PoV-News


Post a reply to this message

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