Re: [Algorithms] Compose rectangles within another rectangle
Brought to you by:
vexxed72
From: Fabian G. <f.g...@49...> - 2010-01-25 10:22:41
|
Arno Gerretsen schrieb: > Hi, > > I am looking for an algorithm that can help me to compose a number of > rectangles, with different sizes, within a bigger rectangle. So I want > to pack them most efficiently within the bigger rectangle. Does anybody > know the best approach to this, except for just trial and error. > > The background is that I want to compose a big texture sheet from a > collection of smaller texture pieces automaticaly. This might help you as well: http://www.flipcode.com/archives/Rectangle_Placement.shtml -Fabian Giesen |