cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
Craige_Hales
Super User
Circle Packer Video

The attached JSL was used to make the video.  Circle centers are picked randomly, tested for not inside another circle, then slowly grown until they touch another circle.  Sets of circles are colored by using the color of the circle they touch or starting a new color set.  For the video, the frames were rendered 4X too large, allowing some zooming and rotating video effects in Blender.  Some of the 32000 circles are created out of sight, but all are visible at the end.

 

CirclePacker - YouTube

BlueCircles.png

 

About 2000 images in about four hours.  It is a brute force algorithm and would need some work finding new center points if it was going to push much deeper.  Currently it tests all existing circles, not just near circles.  The last few frames that were adding (many) new circles took several minutes each.  You'll see them sparkle near the end.

Last Modified: Jun 22, 2018 1:29 PM