polyxios.SceneNode#
- class polyxios.SceneNode(name: str = '', mesh: int | None = None, children: tuple[int, ...]=(), matrix: ndarray = <factory>, extras: dict[str, ~typing.Any]=<factory>)[source]#
One node in the scene graph.
- Parameters:
- name
Node name from the source file.
- mesh
Index into
SceneData.meshes, orNoneif this node carries no geometry (e.g. a grouping or camera node).- children
Indices of child nodes into
SceneData.nodes.- matrix
Local 4×4 transform matrix (float64, row-major / C-order). Defaults to the identity transform.
- extras
Format-specific extra data (cameras, lights, skins) preserved for round-tripping.
- __init__(name: str = '', mesh: int | None = None, children: tuple[int, ...]=(), matrix: ndarray = <factory>, extras: dict[str, ~typing.Any]=<factory>) None#
Methods
__init__(name, mesh, children, ...] =, ...)Attributes
namemeshchildrenmatrixextras