Just playing around a bit with it.. I used my eyes (instead of math) to adjust some of the distances which should be better tweaked. Wanted to see if I caould create some kind of triangle with the polygons... Then turn that into Sierpensky's Sieve... Ended up with Sierpensky's Dreidel?
startshape seed
include i_polygon.cfdg
rule seed {
meta_triangle {}
go_up {}
}
rule go_up {
meta_triangle { y 1.7 }
go_left { r -5 }
go_right { r 5 }
go_up { b 0.01 y 1.9 s .8 }
}
rule go_left {
meta_triangle { x -1.9 }
go_left { b 0.1 x -1.9 r -15 s .77 }
}
rule go_right {
meta_triangle { x 1.9 }
go_right { b 0.1 x 1.9 r 15 s .77 }
}
rule meta_triangle {
triangle { y .48 }
triangle { x .5 y -.4 }
triangle { x -.5 y -.4 }
}
rule triangle {
polygon6sided { s .55 y .22 }
polygon6sided { s .55 x -.25 y -.22 }
polygon6sided { s .55 x .25 y -.22 }
}
globalreset wrote:I used my eyes (instead of math) to adjust some of the distances
I do this quite a bit, and find it works great. I also frees me from the strictures of algebraic geometry: I like to tweak shapes so they aren't nice perfect shapes - and in that case the math would be way too hard to compute...