1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Overlapping Circles

Posted by Ian Campbell on Sep 04, 2010

Given a pre-existing set of circles and their data, how would you generate another, random set of circles none of which overlap the first set of circles? Is there a more efficient way to do this than a guess-and-check method?


 
Posted by fdb on Sep 06, 2010

This sounds much like a circle packing algorithm:

http://nodebox.net/code/index.php/shared_2008-08-07-12-55-33

Is this what you mean?



Posted by Enrique on Sep 23, 2010

That link you provided fdb is what I'm trying to accomplish.
I've downloaded the deluanay module and added it to the library, even to the folder where I'm running the script, but to no avail.



Posted by Enrique on Sep 23, 2010

I get the following error:
(I am using Mark's code from the packing circles thread)

Traceback (most recent call last):
  File "nodebox/gui/mac/__init__.pyo", line 358, in _execScript
  File "/Users/enrique/Library/Application Support/NodeBox/libraries/delaunay/test.py", line 1, in 
ImportError: No module named delaunay