How to get the radii from imagecircles node?

(Dmitry) #1

Hi All! Trying to pack some circles on a colored mesh with ImageCircles node in Kangaroo. How can I get the radii as a result for each circle? Or is there a smarter way? Please help.

0 Likes

(Laurent Delrieu) #2

And what about looking at O output ? Data is sorted like the GoalObject input.
Look at last example here
And it would be better if you post your script

0 Likes

(Daniel Piker) #3

This example includes the use of the output to get the radii:


https://github.com/Dan-Piker/Kangaroo-examples/blob/master/collisions_and_packing/Image_circlepacking.gh

6 Likes

(Dmitry) #4

Oh! Thank you @DanielPiker! It’s so easy indeed! Actually I was confused by the output O from bouncy solver. It’s goal function and I had no Idea how to convert in into radii. But why the simple solver gives out another kind of data? Which one is better using?

0 Likes

(Ethan Gross) #5

@DanielPiker Where did your initial colored mesh of the Rhino come from, or how was it achieved?

0 Likes

(Daniel Piker) #6

I think I just used the standard Import Image component.

0 Likes

(Laurent Delrieu) #7

If you look at this post I use Import Image in order to have a colored mesh. It is also a way to have information on an image inside grasshopper (size in pixel = size in system unit, color …)

1 Like