POV-Ray : Newsgroups : povray.programming : Infinate cylinders : Re: Infinate cylinders Server Time
5 Nov 2024 18:20:46 EST (-0500)
  Re: Infinate cylinders  
From: Robert Dawson
Date: 12 Aug 1999 12:52:12
Message: <37b2fbbc@news.povray.org>
Nieminen Mika <war### [at] cctutfi> wrote in message
news:379c0a93@news.povray.org...
> our### [at] hotmailcom wrote:
> : While a #while loop would do a good job of simulating such an array, I
> : was hoping for a poly, cubic, quartic or quadric that would produce such
> : a shape (an infinate 2D array of infinately long cylinders).
>
>   I don't think you can make any repeating pattern with a polynomial
> equation. I may be wrong though...

    Nope, absolutely right.

    Trig functions will give a reasonable approximation, but to get real
cylinders I'd want to use fractional_part or something similar:

    x = sqrt(1 - (2*y - round(2*y)*(2*y-round(2*y))

-Robert Dawson


Post a reply to this message

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