POV-Ray : Newsgroups : povray.advanced-users : 3D Sinewave : Re: 3D Sinewave Server Time
2 Nov 2024 11:25:32 EDT (-0400)
  Re: 3D Sinewave  
From: Peter Popov
Date: 12 Oct 1999 19:27:48
Message: <w8IDOHDO5OcrUhoHNT=1YMVHBQNX@4ax.com>
On Tue, 12 Oct 1999 13:39:34 -0700, Ken <tyl### [at] pacbellnet> wrote:

>  Is it possible to extend (not extrude) the sine wave pattern into the
>z plane as well ?
>
>  The final result if I can describe it correctly would be alternating
>mounds and valleys.
>
>Anyone ?

Try:

#declare X=-50;
#while (X<50)
  #declare Z=-50;
  #while (Z<50)
    sphere { <X,5*sin((X+Z)/30),Z>,1 }
    #declare Z=Z+1;
  #end;
  #declare X=X+1;
#end

Unchecked!!!


Peter Popov
ICQ: 15002700


Post a reply to this message

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