Decorative Circle Packing & Filling


#1

Edit!

All images (which have been updated from those previously linked) for this project are now available at:

http://tinrocket.com/projects/programming/graphics/00203/

Hi,

I just wanted to share some graphics programming from the past week or so. I’m working on a design project that, for the first part, requires the ability to tightly packed circles of various sizes into and around arbitrary shapes. The circle geometry will then be used for some further graphics processing and will not be visible in the final designs (its just the plumbing).

However, I’m pleased with my circle pack algorithm and the images are kinda interesting, so I’m posting some of the test images (sorry, no code). There are still a few rough edges to the program once it gets down to very small circles.

The images:

This image shows a packing with a circle sizes ranging from largest possible down to a medium-small size. (Note that big circles fill the counters of the O & C, I found this aesthetically bothersome, so in the next image afterwards, I put a cap on the maximum circle size.)

(Image Deleted)

This image shows a packing with a circle sizes ranging from medium down to a medium-small size. Packing in the O & C is much improved.

(Image Deleted)

This image shows same packing configuration as above, but now with the text replaced by circles.

(Image Deleted)

This image shows just the circle filled type from the above image.

(Image Deleted)

This image shows some other characters, it is from an earlier set of tests. Circle sizes range from largest possible to medium-small.

(Image Deleted)

Mr. John


#2

Thanks for sharing these. Fun to look at, circles are pleasing to the eye. Reminds me of ice floes, and of course bubbles.

Do you use a bitmap as the letter source, or a mesh? And is that a little noise creating the extra small circles in the white image?


#3

Originally posted by EricChadwick
[B]Thanks for sharing these. Fun to look at, circles are pleasing to the eye. Reminds me of ice floes, and of course bubbles.

Do you use a bitmap as the letter source, or a mesh? And is that a little noise creating the extra small circles in the white image? [/B]

Yes, the source is bitmap, but the program outputs vector graphics. In that way, the higher res the source image, the better. The bit of noise occured because I processed the letter’s circles using the output of the white space’s circles, so the program found some space to put small circles in.

John


#4

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.