POV-Ray : Newsgroups : povray.general : rotation around arbitary axis? : Re: rotation around arbitary axis? Server Time
6 Aug 2024 19:26:22 EDT (-0400)
  Re: rotation around arbitary axis?  
From: Christopher James Huff
Date: 13 Feb 2002 09:19:15
Message: <chrishuff-58548D.09190113022002@netplex.aussie.org>
In article <3c6a07f0$1@news.povray.org>,
 "Bill DeWitt" <bde### [at] cflrrcom> wrote:

>     Maybe I misunderstood the question.
> 
> #declare Sphere1 = x;
> #declare Sphere2 = vaxis_rotate(Sphere1, 1, 360*clock);
> 
>    sphere { Sphere1, 0.4 pigment { rgb x } } // the object
>    sphere { Sphere2, 0.5 pigment { rgb y } } // the rotated object
>    cylinder { 0, 1, 0.25 pigment { rgb z } } // the arbitrary axis

Now rotate a sphere with a patterned texture. Or rotate a box, or a 
julia fractal.
Vectors aren't always enough, which is why the axial rotation macro is 
included with 3.5.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

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