Re: looking for an algorithm for layout



Max Odendahl wrote:
Hi,

ok, trying again:

I have an ankor position (aX,aY) in a plane as well as rectangles, which should be layout on the right side of the plane, therefore, their layout position rX is always the same for them. All rectangles have a different height, but can be made smaller if neccessary. The goal is it now to layout them so that rY is as close as possible to aY and as much height from the rectangles is used as possible. There is always only one rectangle horizontally, and they are not allowed to overlap vertically (but height can be reduced if neccessary)

Does this make more sense now?


Closer... but I still don't understand. It sounds like you want to stack the rectangles vertically. If so, I don't see why the width of the rectangles matters at all-- it seems like a 1D problem involving line segments. I also don't understand what the anchor (that's how you spell it, btw) is used for. Can you give an example input and explain what output you would like.

Mark
.



Relevant Pages

  • Re: Charm Quilts
    ... Here's one I made (not a true charm quilt, as there are some repeats and ... I came up with this layout by starting with the ... Happy stash diving! ... rectangles. ...
    (rec.crafts.textiles.quilting)
  • Re: looking for an algorithm for layout
    ... I have an ankor position in a plane as well as rectangles, which ... should be layout on the right side of the plane, therefore, their layout ... All rectangles have a different ...
    (comp.programming)
  • finding the area of highest concentration
    ... advice here. ... Basically I have a series of rectangles in a Cartesian ... plane and I would like to find the area of highest density (also a ... calculating the centre point of each rectangle in the plane and then ...
    (sci.math)
  • finding the area of highest concentration
    ... advice here. ... Basically I have a series of rectangles in a Cartesian ... plane and I would like to find the area of highest density (also a ... calculating the centre point of each rectangle in the plane and then ...
    (sci.math)
  • Re: finding the area of highest concentration
    ... > advice here. ... Basically I have a series of rectangles in a Cartesian ... > calculating the centre point of each rectangle in the plane and then ... Thsnks a lot, Joe ...
    (sci.math)