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

NameTypeAccessDescription
parent_nodeOptional['Node']ReadGets the parent node.
child_nodesList['Node']ReadGets the child nodes.
entitiesList['Entity']ReadGets the entities.
entityOptional['Entity']ReadGets the entity.
materialsList['Material']ReadGets the materials.
materialOptional['Material']ReadGets the material.
transformTransformReadGets the transform.
global_transformGlobalTransformReadGets the global transform.
visibleboolReadGets the visible.
excludedboolReadGets the excluded.
asset_info``ReadGets the asset info.
meta_datasListReadGets the meta datas.

Methods

SignatureDescription
__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)Matrix4Computes the node’s global Transform matrix, optionally including geometric transform
get_bounding_box()BoundingBoxReturns 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

See Also