Javascript 2D circular bin packing algorithm with selective grouping of inner objects

Cancelled

I need a function which takes a radius of a circular bin and a 2 dimensional array of the groups of circles of various radius and returns the 2d array with each circle's x,y center coordinates within the bin. The circles in each internal array must be grouped together within the bin and the separation of the groups must be organic. In the attached diagram not how each color of circles is grouped together, but all the circles are still individually packed together as a whole and the division between groups is indistinguishable from the division between individual circles except for circle color.

For instance each circle object is simply {x:0,y:0,radius:0}

The input array looks something like this

[

[{x:0,y:0,radius:0},{x:0,y:0,radius:0},{x:0,y:0,radius:0}],

[{x:0,y:0,radius:0},{x:0,y:0,radius:0},{x:0,y:0,radius:0},},{x:0,y:0,radius:0}],

[{x:0,y:0,radius:0},{x:0,y:0,radius:0}]

]

and the returned array would remain the same, except the x,y values for each circle object have been set.

The attached image is a visualization of the resulting arrangement of the arrays of circles

Skills: Engineering, Javascript, Mathematics, Software Architecture, Software Testing

See more: javascript array, bin packing, set algorithm, algorithm set, algorithm input, algorithm function, image of a circle, packing, inner, image algorithm, javascript algorithm, javascript diagram, javascript visualization, algorithm array, inner shell algorithm isosurface extraction, circular slider javascript, javascript object array, diagram javascript, diagram visualization javascript, organic groups, circles color, array javascript, need objects, algorithm write program circular linked list, set array javascript

Project ID: #4784215

4 freelancers are bidding on average $108 for this job

ranganathp

Can help... I am an expert...

$150 CAD in 7 days
(11 Reviews)
5.0
nicu66pr

I can do this program in Labview.

$83 CAD in 3 days
(2 Reviews)
3.5
szymszteinsl

Ready, sir!

$103 CAD in 2 days
(3 Reviews)
3.3
vahid01

I can help you.

$100 CAD in 5 days
(2 Reviews)
1.9
hMlNEfDEljPx

We are freelance software developers. If you contact us, we can give a quote for your project and we can discuss the details further. w w w . s o l ve r . i o

$25 CAD in 3 days
(0 Reviews)
0.0
rgandhi90

Hi, I'm in the field of developing 2D graphics using javascript for 3 years. I can do this for you.

$80 CAD in 2 days
(0 Reviews)
0.0