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