Re: looking for an algorithm for layout
- From: Mark P <usenet@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 13 Jun 2007 00:46:27 -0700
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
.
- Follow-Ups:
- Re: looking for an algorithm for layout
- From: Max Odendahl
- Re: looking for an algorithm for layout
- References:
- looking for an algorithm for layout
- From: Max Odendahl
- Re: looking for an algorithm for layout
- From: Max Odendahl
- looking for an algorithm for layout
- Prev by Date: Re: Another question about big floating point
- Next by Date: Re: looking for an algorithm for layout
- Previous by thread: Re: looking for an algorithm for layout
- Next by thread: Re: looking for an algorithm for layout
- Index(es):
Relevant Pages
|