POV-Ray : Newsgroups : povray.advanced-users : 3D Sinewave : Re: 3D Sinewave Server Time
2 Nov 2024 11:24:21 EDT (-0400)
  Re: 3D Sinewave  
From: Ken
Date: 12 Oct 1999 21:34:31
Message: <3803E166.FA4FE476@pacbell.net>
Chris Huff wrote:
> 
> Note: I did not test this code, I actually made an isosurface with this
> function:
> function {y - 5*(sin(x/3) + sin(z/3))}
> and a threshold of 0. Of course, this requires the Superpatch.
> This has been tested:
> union {
>  #declare X=-50;
>  #while (X<50)
>    #declare Z=-50;
>    #while (Z<50)
>      sphere { <X,5*(sin(X/5) +sin(Z/5)),Z>,1 pigment {color Yellow}}
>      #declare Z=Z+1;
>    #end
>    #declare X=X+1;
>  #end
>  scale 0.1
> }

Worked great. Thanks Chris.

-- 
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.