Polygon Art

From Fmepedia


Table of contents

Polygon Art


Polygon Art is a contribution by Michael Habarta.


Task


Start with a regular polygon.

Then draw all connections between the available corners ...

... and the result is a picture of increasing complexity depending on the number of corners.


8 corners


24 corners


32 corners


Some Maths

Wondering how many lines there are ?

If n is the number of corners, then x the number of connections can be calculated with:

         x= n*(n-1)/2
        corners        lines
             12   ...     66
             24   ...    506
             48   ...   1128
             64   ...   2016
            128   ...   8128


FME Workbench

Here's the workspace

The number of corners and the radius are published parameters.


Advanced Fun

The center area of a 64 corner drawing


A detail zoom into a 128 corner drawing



Personal Remark

This idea results from a drawing lesson from way back in my school times. In seventh grade we had to manually draw a 24 corner polygon with all connections.


I liked the result and took it further with 32 and 48 corners. Finally in university I remembered the exercise and tried a 64 corner polygon. It took me 4 days of drawing and all skills and tricks I had ...


With FME it took me a couple of hours to figure out and implement the workbench, and it now draws any polygons, up to memory limit ... :-)

Mystery Output

Couldn't resist playing with this to try unlock the mysteries of the universe. These kml files opened in Google Earth show primitive man must have possessed FME technology! - MAI


Google Earth Screenshot

Attached Files
filesizedate
Polygon_Connections.fmw82.3 kB01/24/07
poly_008.jpg101.4 kB01/24/07
poly_012.jpg142.9 kB01/24/07
poly_024.jpg200.5 kB01/24/07
poly_032.jpg226.6 kB01/24/07
poly_064_zoom_center.jpg893.0 kB01/24/07
poly_064_zoom_deep_border.jpg614.8 kB01/24/07
poly_128_zoom_deep_center.jpg780.4 kB01/24/07
poly_128_zoom_deep_inside.jpg785.7 kB01/24/07
spooky.zip1.5 kB01/25/07
stone-henge.jpg99.3 kB01/26/07
User Comments Add a new comment