Package limn.render3d.scene
Class Node
java.lang.Object
limn.render3d.scene.Node
A node in the retained
Scene3D graph: a local Transform3D plus
children. Concrete payloads are MeshNode and LightNode; a plain
Node is a transform group. World transforms are composed top-down during
traversal (world = parentWorld ยท local) and cached: only subtrees
whose transform changed since the last frame recompute, so a static scene does
zero matrix math per frame.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<N extends Node>
Nadd(N child) Adds a child and returns it (for fluent building).children()The live child list.name()An optional label, for debugging and for finding a node in a loaded model.Labels this node; purely informational.This node's transform, relative to its parent.transform(Transform3D transform) Sets the transform relative to the parent, moving the whole subtree with it.
-
Constructor Details
-
Node
public Node()
-
-
Method Details
-
transform
This node's transform, relative to its parent. -
transform
Sets the transform relative to the parent, moving the whole subtree with it. -
name
An optional label, for debugging and for finding a node in a loaded model. -
name
Labels this node; purely informational. -
children
The live child list. Preferadd(N)for attaching: it marks the child dirty so its cached world matrix is recomposed under the new parent; moving an already-composed node in via this raw list keeps a stale world until its transform next changes. -
add
Adds a child and returns it (for fluent building).
-