struct TreeTextureAtlasLayout::NodeSplitResult

Result of a node split operation.

Public

Fields

SmallerLeftoverArea

Area2I SmallerLeftoverArea

LargerLeftoverArea

Area2I LargerLeftoverArea

LargerAreaOrientation

NodeOrientation LargerAreaOrientation

If horizontal, larger rectangle is placed to the right of the requested area (which is always in the top right of the node), and smaller rectangle is placed below the requested area.

Similarly, if vertical, larger rectangle is placed below the requested area, and smaller to the right of the requested area.