You need more information, like the height of the trapezoid and the length of the bases. Is the height and the bases ?
I'm trying to fill an area with objects, but I can't seem to wrap my brain around the problem well enough to find a solution. Here is the problem:
I need to fill a trapezoidal area with rows of rectangular objects, laid end-to-end lengthwise. The rows need to be separated by a distance "D". If the rectangular objects have a length "L" and a width "W", and I need to use exactly "N" number of objects, how do I determine the maximum distance "D" to space the rows out?
Thanks in advance.
I have measurements of all parts, but I want to keep the formula generic because I actually have two trapezoids to fill. For now, I just want to use h, b1 and b2 for the basic dimensions of the trapezoid.
I'm pretty sure that gives me enough information to solve the problem, but I could be wrong.
gives the number of rows you will have. Assuming is the longer base and is the shorter one, then the maximum number of rectangles you can have in a single row is given by . If is less than that, then . If is greater than that, then you need another row. Assuming all rows have equal spacing, then place the second row so that a third row will not fit, but maximizes the space between itself and the first row already placed. Keep going until all rectangles are placed.