Question??? about fill the closed curve with a circle

   2274   4   1
User Avatar
Member
11 posts
Joined: Nov. 2015
Offline
Hello


I would like to know if i can draw a closed curve then fill it with another object
these object should distribute randomly , no intersection , and in random scale to fill the closed curve with this object
this object can be circle square or start


The idea is to get something like the attached image


If you have a tutorial like which will help in doing this please give me the link


thank you

Attachments:
conversion 81 image series IV 100x130cm (1).jpg (1.7 MB)

User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
google “dart throwing algorithm”.
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
183 posts
Joined: Nov. 2008
Offline
donluco
google “dart throwing algorithm”.

Dart throwing is the most straightforward but very slow algorithm.
Google “shape packing algorithm” There are tons of articles.
Aleksei Rusev
Sr. Graphics Tools Engineer @ Nvidia
User Avatar
Member
8551 posts
Joined: July 2007
Online
not necessarily nonintersecting, but here is an example

Attachments:
ts_fill_shapes_with_circles_.hip (187.6 KB)
ts_fill_shapes_with_circles_.png (128.5 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Staff
4164 posts
Joined: Sept. 2007
Online
That's a great example Tomas, very cool!

Here is another method, using VDB to Spheres; it's not perfect, but it sorta works. If you have to do 3d Sphere packing, VDB to Spheres is super handy.

Attachments:
screenshot-area-2016-02-27-014227.png (58.7 KB)
vdb-spheres-circle-packing.zip (18.0 KB)

I'm o.d.d.
  • Quick Links