Table of Contents

Enum MaxRectsHeuristic

Namespace
Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly
MonoGame.Framework.Content.Pipeline.dll

Heuristic method to use to choose the rectangles positions.

public enum MaxRectsHeuristic

Fields

Baf = 2

Best Area Fit: Positions the rectangle into the smallest free rect into which it fits.

Bl = 3

Bottom Left (Tetris method): Each rectangle is placed to a position (possibly rotating it) where its top side lies as low as possible.

Blsf = 1

Best Long Side Fit: Positions the rectangle against the long side of a free rectangle into which it fits the best.

Bssf = 0

Best Short Side Fit: Positions the rectangle against the short side of a free rectangle into which it fits the best.

RectContactPointRule = 4

Contact Point: Choosest the placement where the rectangle touches other rects as much as possible.