POV-Ray : Newsgroups : povray.general : vrotate question : Re: vrotate question Server Time
8 Aug 2022 22:24:17 EDT (-0400)
  Re: vrotate question  
From: m@b
Date: 21 Jul 2022 16:05:22
Message: <62d9b182@news.povray.org>
On 21/07/2022 8:22 pm, jr wrote:
> hi,
> 
> "m@b" <sai### [at] googlemailcom> wrote:
>> ...
> 
> oops, replied to the email, sorry.

My fault - I meant to reply on here, hit the wrong button.
> 
> 
> regards, jr



thanks for yr interest.  so, point at <5,0,0>, I want to "orbit",
around Y, at an incline of 45°.  rotating that amount in Z gives me
that, but the point/sphere crosses the Z axis in two places.  adding a
rotation of +-X _should_ to my thinking, incline the orbit such that
it goes "over" +Z and "under" -Z, or vice versa.  so I try to have
multiple orbits around origin, without them crossing/touching the
respective axis.  (hope that makes sense)  cheers.

I think what you want is this:

   sphere{0, 1 translate<5,0,0> rotate<0,i_,45> rotate<45,0,0>}

i.e. apply the x rotation after the i_ thing. I don't think it is 
possible using vrotate.

If you need to define the points in advance you could try this:

   #local p2_ = transform {translate<5,0,0> rotate<0,i_,45> rotate<45,0,0>};
   sphere{0, 1 transform p2_ }

??????


--


Post a reply to this message

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