unreal.HairCardAtlasBinpackData¶
- class unreal.HairCardAtlasBinpackData(children: None = [], bounds: None = [], is_full: None = [], is_reserved: None = [], margin_px: int = 0)¶
Bases:
StructBaseBinary partition info used internally for current atlas layout algorithm
C++ Source:
Plugin: HairCardGenerator
Module: HairCardGeneratorEditor
File: HairCardGenTypes.h
Editor Properties: (see get_editor_property/set_editor_property)
bounds(Array[int32]): [Read-Write] (N_nodes * 4,) flattened [min_x, min_y, max_x, max_y] bounds per nodechildren(Array[int32]): [Read-Write] (N_nodes * 2,) flattened child node indices; -1 = None (leaf)is_full(Array[bool]): [Read-Write] (N_nodes,) node full flagis_reserved(Array[bool]): [Read-Write] (N_nodes,) node reserved flagmargin_px(int32): [Read-Write] Margin in pixels; invariant across all nodes
- property bounds: None¶
[Read-Write] (N_nodes * 4,) flattened [min_x, min_y, max_x, max_y] bounds per node
- Type:
(Array[int32])