Need help witht he math
Posted: Wed Aug 11, 2010 10:33 am
I, as so many times before, have a problem which is starting to give me brain cancer or something. At least my head hurts.
Anyway, the problem is this.
I have a rectangular 2d surface and this area need to be covered circular areas, the centre of which cannot lie outside the borders of the rectangle. The trick is then to use the least amounts of circles.
I know this all sounds very odd because I don't really know how to explain the problem, so I've made an example.
For my purpose the rectangle is 479*989 and the circles all have a radius of 21.6.
In this example 432 circles are used.
http://myhideout.eu/temp/cnd.svg
The above example don't quite follow the rules though, as several of the circles have a centre lying outside the bounds of the rectangle.
I should think that this is not a new problem and that probably there's some fancy formula or something.
In any case, if you're able to help, I'll be very grateful
Best regards.
Anyway, the problem is this.
I have a rectangular 2d surface and this area need to be covered circular areas, the centre of which cannot lie outside the borders of the rectangle. The trick is then to use the least amounts of circles.
I know this all sounds very odd because I don't really know how to explain the problem, so I've made an example.
For my purpose the rectangle is 479*989 and the circles all have a radius of 21.6.
In this example 432 circles are used.
http://myhideout.eu/temp/cnd.svg
The above example don't quite follow the rules though, as several of the circles have a centre lying outside the bounds of the rectangle.
I should think that this is not a new problem and that probably there's some fancy formula or something.
In any case, if you're able to help, I'll be very grateful
Best regards.