POV-Ray : Newsgroups : povray.general : Transform help please : Re: Transform help please Server Time
4 Aug 2024 00:29:27 EDT (-0400)
  Re: Transform help please  
From: Christopher James Huff
Date: 1 Sep 2003 00:27:04
Message: <cjameshuff-46883C.00270301092003@netplex.aussie.org>
In article <3f52a123@news.povray.org>,


> you will have to undo these rotations in *reverse* order, i.e.
> 
>    rotate -Up.z*z
>    rotate -Up.y*y
>    rotate -Up.x*x

Or "transform {rotate Up inverse}". Besides being shorter, it says 
exactly what it's doing and is far less error-prone, especially when 
you're editing the code.

Even better would be to declare the transformation. That way, you only 
need to edit one bit of code to change it.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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