POV-Ray : Newsgroups : povray.newusers : povray and 3D graphs : Re: povray and 3D graphs Server Time: 24 Jul 2008 20:02:04 GMT
  Re: povray and 3D graphs  
From: Karl Anders
Date: 17 Apr 2008 15:20:03
Warp <warp [at] tagpovrayorg> wrote:
>
>   Either swap the contents of the y and z components of the vectors,
> <snip>
> or alternatively add a "rotate -x*90" at the very end of the 'union' block.
>

Oops, an unexpected glitch from the master :-)
The last one won't exchange z and y, not generally. Since I'm a
righthanded-z_is_up-guy too, I usually use the matrix stuff to exchange y and z
for models made by other people:

#include "transforms.inc"
#declare Swap_yz_trans = transform{ Shear_Trans(x, z, y) };

#declare RightHandedObject = object{
   LeftHandedObject transform Swap_yz_trans };

hope that helps

Greetings
Karl


Post a reply to this message

Copyright 1991-2004 POV-Team™