unreal.HairCardAtlasBinpackData

class unreal.HairCardAtlasBinpackData(children: None = [], bounds: None = [], is_full: None = [], is_reserved: None = [], margin_px: int = 0)

Bases: StructBase

Binary 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 node

  • children (Array[int32]): [Read-Write] (N_nodes * 2,) flattened child node indices; -1 = None (leaf)

  • is_full (Array[bool]): [Read-Write] (N_nodes,) node full flag

  • is_reserved (Array[bool]): [Read-Write] (N_nodes,) node reserved flag

  • margin_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])

property children: None

[Read-Write] (N_nodes * 2,) flattened child node indices; -1 = None (leaf)

Type:

(Array[int32])

property is_full: None

[Read-Write] (N_nodes,) node full flag

Type:

(Array[bool])

property is_reserved: None

[Read-Write] (N_nodes,) node reserved flag

Type:

(Array[bool])

property margin_px: int

[Read-Write] Margin in pixels; invariant across all nodes

Type:

(int32)