Show messages: All
1-4
5-16
From: PaQ
Is there a fancy (quick) method to compute this kind of packing ?
My method is pretty lame here, involving a lots of iteration (basically I'm packing circles one by one until threr is no space left).
It does gives some nice result tho, wish it could be done in a more elegant way.
Image Attachments:
paqpack01.JPG
paqpack02.JPG
From: Frenchy Pilou (PILOU)
And if you retake this result as figure in a new process you will obtain a very elegant fractal geometric nifty pattern! :)
From: PaQ
mmm if I repack circles in those circles I would end up with the exact same result ? not sure to follow :P
From: Barry-H
Hi,
I have modified the JS file see post11874.1
Just replace old with new.
Cheers
Barry
From: Michael Gibson
Thanks for sharing it Barry!
From: Barry-H
Hi Michael,
your guidance at the beginning was a big help.
Cheers
Barry
From: Frenchy Pilou (PILOU)
@PaQ
This green form will play now the the role of the circle! :)
etc...goto the fractalium abbys! :)
Filling or not depending of the final image wished!
From: PaQ
Oh I see. Packing circles is not "that" complicated, packing random shapes that's something different :P ... it's basically something a uv packer do, but they usually only test a bunch of fixed rotation (+90 degree for example).
From: MO (MO_TE)
Hi Barry,
Thanks for the info. Indeed, it is a very nice script. I tried several times to make a circle packing node, but I always ended up filling a simple rectangular or circular base shape. (Filling arbitrary shapes involves hard calculations.) I never thought that packing arbitrary shapes could be done with the help of the tools inside MoI (boolean intersection).
From: Frenchy Pilou (PILOU)
A cool script will be fall any objects in a box for obtain o sort of packing objects without intersection!
From: MO (MO_TE)
Hi PaQ
NodeEditor Plus includes a circle packing node that can be useful for arbitrary shapes, especially shapes with holes. The node called "Image Circles" was developed by Wayne Hill. It uses an image to generate a circle packing pattern.
Here, I've just imported your screenshot into Gimp and used "Fuzzy Select" and "Bucket Fill" tools to make a PNG image with a transparent background.
Load the image into "Image Circles" by clicking on the node's white area and change the settings. Then connect this node to an "Output" node and press the Run button to get the desired result.
If you want to keep the results, press the Apply button.
Tip: Double click on the canvas to open the search box.
Image Attachments:
BaseShape.png
CirclePackResult.png
From: PaQ
Ho that's very interesting.
Thanks for posting, I definitively need to check that out, it's probably way smarter than my method !
Show messages: All
1-4
5-16