POV-Ray : Newsgroups : povray.binaries.images : Big menger sponge (137k) : Re: Big menger sponge (137k) Server Time
4 Jul 2025 10:50:15 EDT (-0400)
  Re: Big menger sponge (137k)  
From: Fabien Mosen
Date: 21 Oct 2000 12:02:50
Message: <39F1BD0A.EEF353D8@skynet.be>
Bill DeWitt wrote:

>     I sort of knew it wasn't little blocks stuck together, but I was hoping
> that it was done with a fractal formula and that we could modify it to
> develop other fractal shapes.

It probably can be made that way, if you generate the formula with
a recursive algorithm (sort of lsystem, maybe ?).

#declare formula = {
 #while loop..
  #declare frequency = frequency*2;
 
  + sub_formula_using_frequency_as_a_parameter

 #increment loop..
 #end loop.
}

Fabien.


Post a reply to this message

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