Skip to content

Class uipc::core::SceneSurfaceCache

ClassList > uipc > core > SceneSurfaceCache

Public Types

Type Name
enum IndexT UpdateStatus

Public Functions

Type Name
SceneSurfaceCache (Scene & scene, IndexT dim=2)
SceneSurfaceCache (SceneSurfaceCache &&) noexcept
SceneSurfaceCache (const SceneSurfaceCache &) = delete
IndexT dim () noexcept const
Target simplex dimension (-1, 0, 1, or 2).
void invalidate () noexcept
Force a full surface and cache rebuild on the next update() .
SceneSurfaceCache & operator= (SceneSurfaceCache &&) noexcept
SceneSurfaceCache & operator= (const SceneSurfaceCache &) = delete
span< const Vector3 > positions () noexcept const
Contiguous world-space surface vertex positions kept up to date by update() .
const geometry::SimplicialComplex & surface () noexcept const
Merged surface mesh from the latest topology rebuild.
UpdateStatus update ()
Synchronize cached surface positions and topology with the scene.
~SceneSurfaceCache ()

Public Types Documentation

enum UpdateStatus

enum uipc::core::SceneSurfaceCache::UpdateStatus {
    Unchanged = 0,
    PositionsUpdated = 1,
    TopologyRebuilt = 2
};

Public Functions Documentation

function SceneSurfaceCache [1/3]

uipc::core::SceneSurfaceCache::SceneSurfaceCache (
    Scene & scene,
    IndexT dim=2
) 

function SceneSurfaceCache [2/3]

uipc::core::SceneSurfaceCache::SceneSurfaceCache (
    SceneSurfaceCache &&
) noexcept

function SceneSurfaceCache [3/3]

uipc::core::SceneSurfaceCache::SceneSurfaceCache (
    const SceneSurfaceCache &
) = delete

function dim

Target simplex dimension (-1, 0, 1, or 2).

IndexT uipc::core::SceneSurfaceCache::dim () noexcept const

function invalidate

Force a full surface and cache rebuild on the next update() .

void uipc::core::SceneSurfaceCache::invalidate () noexcept

function operator=

SceneSurfaceCache & uipc::core::SceneSurfaceCache::operator= (
    SceneSurfaceCache &&
) noexcept

function operator=

SceneSurfaceCache & uipc::core::SceneSurfaceCache::operator= (
    const SceneSurfaceCache &
) = delete

function positions

Contiguous world-space surface vertex positions kept up to date by update() .

span< const Vector3 > uipc::core::SceneSurfaceCache::positions () noexcept const

function surface

Merged surface mesh from the latest topology rebuild.

const geometry::SimplicialComplex & uipc::core::SceneSurfaceCache::surface () noexcept const

function update

Synchronize cached surface positions and topology with the scene.

UpdateStatus uipc::core::SceneSurfaceCache::update () 

Tracks geometry slot identity, instance/vertex/edge/triangle counts, and attribute modification timestamps (topo, is_surf, thickness). When topology is unchanged, only geometries with modified positions or transforms are re-gathered into the contiguous position buffer. When topology changes, the merged surface is rebuilt cleanly.


function ~SceneSurfaceCache

uipc::core::SceneSurfaceCache::~SceneSurfaceCache () 


The documentation for this class was generated from the following file include/uipc/io/scene_io.h