POV-Ray : Newsgroups : povray.advanced-users : 3D Sinewave : 3D Sinewave Server Time
2 Nov 2024 11:25:32 EDT (-0400)
  3D Sinewave  
From: Ken
Date: 12 Oct 1999 16:40:40
Message: <38039C86.6495FF94@pacbell.net>
Using this code I can create a 2D representation of a sinewave in
the x/y plane:

#declare i=0;
  #while (i<90)
    sphere {0,1 pigment {rgb <1,0,0>}finish {ambient 1.0}
    translate <i,10*sin(i*pi/30),0>}
  #declare i = i + 1;
#end

  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 ?

-- 
Ken Tyler -  1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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