Node
Overview
Node is a class in Aspose.3D FOSS for Python.
Inherits from: SceneObject.
Node.add_entity adds the given Entity to this node’s entity collection.
This class provides 10 methods for working with Node objects in Python programs.
Available methods include: __init__, add_child_node, add_entity, create_child_node, evaluate_global_transform, get_bounding_box, get_child, merge, select_objects, select_single_object.
All exported members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: asset_info, child_nodes, entities, entity, excluded, global_transform, and 6 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
parent_node | Optional['Node'] | Read | Gets the parent node. |
child_nodes | List['Node'] | Read | Gets the child nodes. |
entities | List['Entity'] | Read | Gets the entities. |
entity | Optional['Entity'] | Read | Gets the entity. |
materials | List['Material'] | Read | Gets the materials. |
material | Optional['Material'] | Read | Gets the material. |
transform | Transform | Read | Gets the transform. |
global_transform | GlobalTransform | Read | Gets the global transform. |
visible | bool | Read | Gets the visible. |
excluded | bool | Read | Gets the excluded. |
asset_info | `` | Read | Gets the asset info. |
meta_datas | List | Read | Gets the meta datas. |
Methods
| Signature | Description |
|---|---|
__init__(name: Optional[str], entity) | |
add_entity(entity: 'Entity') | Adds the given Entity to this node’s entity collection |
add_child_node(node: 'Node') | Attaches the specified Node as a child of this node |
create_child_node(node_name: Optional[str], entity, material) → 'Node' | Creates a new child Node with optional name, entity, and material |
get_child(index_or_name) | Returns the child Node identified by index or name |
merge(node: 'Node') | Combines the contents of another Node into this node |
evaluate_global_transform(with_geometric_transform: bool) → Matrix4 | Computes the node’s global Transform matrix, optionally including geometric transform |
get_bounding_box() → BoundingBox | Returns the bounding box. |
select_single_object(path: str) | Not implemented in the FOSS edition — throws at runtime. Selects a single object in the node hierarchy using the given path |
select_objects(path: str) | Not implemented in the FOSS edition — throws at runtime. Selects multiple objects matching the path expression |