ReadonlyboundingReadonlyboundingThe bounding box of this tree node for each viewport. As there can be properties where tree nodes are excluded from the viewport, the bounding boxes may be different per viewport. The boundingBox property can be used as the general bounding box without any viewport specific exclusions.
ReadonlychildrenThe children of this tree node. Can be added and remove via addChild and removeChild.
The converted object of the tree node.
ReadonlydataThe data of this tree node. The data can include Geometry, Materials, Lights, Cameras, but also informational or custom data.
Can be added and remove via addData and removeData.
The viewports to exclude this tree node from.
ReadonlyidThe ID of the tree node.
If for this node, global intersection tests should be performed. (default: true)
ReadonlynameThe name of the tree node.
ReadonlynodeThe matrix of the tree node. This is computed via all transformations in the transformations property.
ReadonlyoriginalThe original ID of the tree node, if it was copied.
The viewports to restrict this tree node to.
The transformation to be applied to this tree node.
The update callback for the tree node. This callback is called when the node is updated, e.g. when the version changes.
The update callback for the converted object of the tree node.
ReadonlyversionThe version of the tree node. If the version changes, the node will be marked for an update. A version change can be triggered via updateVersion.
Option to make this tree node visible. (default: true)
ReadonlyworldThe world matrix of the tree node. This includes also the transformations of all parents.
OptionaldisplayAn optional name that can be used for display purposes. If not specified, the name property will be used.
Optional ReadonlyoriginalThe original name of the tree node, if one was supplied.
Optional ReadonlyparentThe parent of the tree node. This property is automatically managed by addChild and removeChild.
Add a data item to node.
the data to add
Add a transformation to this node.
the transformation to add
Clones this node and all its children. The data objects like GeometryData, MaterialData, etc. are cloned as well. Depending on the size of the node and the amount of children, this can therefore be relatively slow.
Clones this node and all its children. The data objects like GeometryData, MaterialData, etc. are not copied in this case.
Test this node and all it's descendants for nodes with the specified name and return them in an array.
Test this nodes name and all it's descendants name for nodes for the specified regex and return them in an array.
Return the path to this node with the original names. If no original name is set, the entry is left empty.
Return the path to this node.
Returns the transformation with the specified id
Check for existence of a child from the children of this node.
the child to check
Check for existence of a data item of this node.
the data item to check
Check for existence of a transformation of this node.
Remove a data item from this node.
the data to remove
Remove a transformation from this node.
the transformation to remove
Traverse this node and all it's children and executes the callback for all of them
Traverse this node and all it's children and executes the callback for all data items of them
Update the version.
Optionalparents: booleanif true, the version of all parents will be updated as well (default: true)
Optionalchildren: booleanif true, the version of all children will be updated as well (default: true)
The bounding box of this tree node.