Skip to content

shapeworks::MeshCache

Thread safe cache for meshes index by shape. More...

#include <MeshCache.h>

Public Functions

Name
MeshCache()
void set_cache_enabled(bool enabled)
void set_memory_percent(int percent)
MeshHandle get_mesh(const MeshWorkItem & vector)
void insert_mesh(const MeshWorkItem & item, MeshHandle mesh)
void clear()

Detailed Description

cpp class shapeworks::MeshCache;

Thread safe cache for meshes index by shape.

The MeshCache implements a std::map keyed by shape (list of points) with MeshHandle values. It is thread-safe and can be used from any thread.

Public Functions Documentation

function MeshCache

cpp MeshCache()

function set_cache_enabled

cpp inline void set_cache_enabled( bool enabled )

function set_memory_percent

cpp inline void set_memory_percent( int percent )

function get_mesh

cpp MeshHandle get_mesh( const MeshWorkItem & vector )

function insert_mesh

cpp void insert_mesh( const MeshWorkItem & item, MeshHandle mesh )

function clear

cpp void clear()


Updated on 2026-03-31 at 16:02:10 +0000