scimesh 0.3.2
Headless CPU-only 3D software renderer for scientific mesh visualization
Loading...
Searching...
No Matches
scimesh::SceneNodeRef Struct Reference

A lightweight, non-owning reference to one mesh in a scene, together with its placement transform (and optional name). More...

#include <scene.h>

Collaboration diagram for scimesh::SceneNodeRef:

Public Attributes

const Meshmesh = nullptr
 Pointer to the owned mesh (never null for a valid node).
 
Mat4 transform = Mat4(1.0f)
 Model matrix placing the mesh in world space (identity = as-is).
 
std::string name
 Optional node name (used by exporters / debugging).
 

Detailed Description

A lightweight, non-owning reference to one mesh in a scene, together with its placement transform (and optional name).

Used by the renderer pipeline and by exporters (e.g. glTF) to consume a scene without copying mesh data. The mesh itself is owned by the Scene.

See also
Scene, Scene::node(), Scene::nodes()

Definition at line 19 of file scene.h.

Member Data Documentation

◆ mesh

const Mesh* scimesh::SceneNodeRef::mesh = nullptr

Pointer to the owned mesh (never null for a valid node).

Definition at line 20 of file scene.h.

◆ name

std::string scimesh::SceneNodeRef::name

Optional node name (used by exporters / debugging).

Definition at line 22 of file scene.h.

◆ transform

Mat4 scimesh::SceneNodeRef::transform = Mat4(1.0f)

Model matrix placing the mesh in world space (identity = as-is).

Definition at line 21 of file scene.h.


The documentation for this struct was generated from the following file: