POV-Ray : Newsgroups : povray.newusers : povray and 3D graphs : Re: povray and 3D graphs Server Time
28 Jul 2024 16:28:41 EDT (-0400)
  Re: povray and 3D graphs  
From: Warp
Date: 17 Apr 2008 06:52:56
Message: <48072c08@news.povray.org>
Daniel C. Bastos <dba### [at] yahoocombr> wrote:
> What I would like to do on your code is to keep the plane where it is
> --- that would be my xy-plane --- and make the helix start from the
> plane and spiral up, because that's how this helix should be as x varies
> according to cos(t) and y to sin(t) and z = t. That is, while x and y
> circle around, z keeps on going up (or down.)

  Either swap the contents of the y and z components of the vectors, like
this:

    #declare P1 = <X(T1), Z(T1), Y(T1)>;
    #declare P2 = <X(T2), Z(T2), Y(T2)>;

or alternatively add a "rotate -x*90" at the very end of the 'union' block.

-- 
                                                          - Warp


Post a reply to this message

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