POV-Ray : Newsgroups : povray.general : Sierpinski N-Gons : Re: Sierpinski N-Gons Server Time
29 Jul 2024 14:21:43 EDT (-0400)
  Re: Sierpinski N-Gons  
From: Le Forgeron
Date: 1 Apr 2011 07:40:35
Message: <4d95b9b3@news.povray.org>
Le 01/04/2011 10:18, Anthony D. Baye a écrit :
> I've managed to write a macro to generate a a sierpinski polygon of n sides, but
> I'm having a few problems.  First, I would expect the 4-sided polygon
> (sierpinski square) to look like a Mengher sponge, but it doesn't.
> 
> This is not my main problem, however.
> 
> What I'm trying to do is something like this:
> http://www.fractalsciencekit.com/gallery/orbital/f1058.jpg
> 
> which the site says is a sierpinski n-gon, but I can't figure out how they did
> it, and they aren't really saying except that it was done with their software.
> 
> If anyone can help me, I'd appreciate it.
> 
> Regards,

Sierpinski is associated with the Sierpinski triangle & carpet.

http://en.wikipedia.org/wiki/Sierpinski_carpet

The triangle is a red herring. It is built from with a different method.
(split a triangle in 4 sub-triangles, remove central, repeat).


As indicated within the wiki, you will need self replication to build
the carpets. N-gons are not self replicating excepted for very specific
N-gons.

 ( http://en.wikipedia.org/wiki/Self-replication )

The provided image is not a true carpet. So 4-gon is not a Mengher face!

In http://www.fractalsciencekit.com/types/orbital.htm
they discribe the process.

Their Sierpinski triangle is the set of point made as follow.
S(0) = { triangle vertices }. (3 points)

S(n+1) = S(n) U { f(S(n)) }

f(point)= midpoints between point and the original triangle vertices.

So, in fact, f() generates 3 new points per input point, if you try to
cover all the cases.
(but some points are duplicated, so the size of the set does not grow as
fast as 3^(n+1)... but not far).

Generalisation to n-gons: increase the number of initial points (to n),
increase the number of points generated by f. If ready for brute force,
just ignore duplicated points (do not detect them)

Your approach is based on the formula of the triangle, which is not
appropriate for n-gons. (Both provide the Sierpinski triangle, but that
just some kind of lucky side effects, IMHO).


Post a reply to this message

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