-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMaxRectsHeuristic.cs
33 lines (29 loc) · 1.08 KB
/
MaxRectsHeuristic.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace OpenWheels.BinPack
{
/// <summary>
/// Heuristic method to use to choose the rectangles positions.
/// </summary>
public enum MaxRectsHeuristic
{
/// <summary>
/// Best Short Side Fit: Positions the rectangle against the short side of a free rectangle into which it fits the best.
/// </summary>
Bssf,
/// <summary>
/// Best Long Side Fit: Positions the rectangle against the long side of a free rectangle into which it fits the best.
/// </summary>
Blsf,
/// <summary>
/// Best Area Fit: Positions the rectangle into the smallest free rect into which it fits.
/// </summary>
Baf,
/// <summary>
/// Bottom Left (Tetris method): Each rectangle is placed to a position (possibly rotating it) where its top side lies as low as possible.
/// </summary>
Bl,
/// <summary>
/// Contact Point: Choosest the placement where the rectangle touches other rects as much as possible.
/// </summary>
RectContactPointRule
}
}