I have a rectangular placement problem. What I want is to place rectangles of size x by y into another rectangle without overlapping. What I want in the end is the starting point of each rectange.
I made this part OF code for it, the logic was that it would cumulatively check for x and y axis along the height and width of the function. However, when I run this, it works for a few instances but not for others. So I posted one of the specific instances for which it gives repeat points here to ask what the issue is and what changes can be made.
Thank you
constraint cumulative(start, x, y, height);
constraint cumulative(starty, y, x, width);