Skip to content

shapeworks::MeshManager

Class to manage meshes. More...

#include <MeshManager.h>

Inherits from QObject

Public Slots

Name
void handle_thread_complete(const MeshWorkItem & item, MeshHandle mesh)
void handle_warper_progress()

Public Signals

Name
void new_mesh()
void error_encountered(QString message)
void progress(int )
void status(std::string )

Public Functions

Name
MeshManager()
~MeshManager()
void set_cache_enabled(bool enabled)
Set if the cache should be enabled.
void set_cache_memory_percent(int percent)
Set the memory cache size.
void set_parallel_enabled(bool enabled)
Set if parallel reconstruction should be enabled.
void set_num_threads(int num_threads)
Set the number of threads for parallel reconstruction.
void generate_mesh(const MeshWorkItem item)
generate and cache a mesh for this shape in a different thread
MeshHandle get_mesh(const MeshWorkItem & item, bool wait =false)
get a mesh for a MeshWorkItem
MeshHandle get_mesh(const Eigen::VectorXd & points, int domain, bool wait =false)
get a mesh for a set of points
std::shared_ptr< SurfaceReconstructor > get_surface_reconstructor(int domain)
return the surface reconstructor for a given domain
std::shared_ptr< MeshWarper > get_mesh_warper(int domain)
return the mesh warper for a given domain
std::shared_ptr< MeshGenerator > get_mesh_generator()
return the mesh generator
void clear_cache()
clear the cache

Detailed Description

cpp class shapeworks::MeshManager;

Class to manage meshes.

The MeshManager handles all aspects of mesh generation and caching. It houses the cache and manages threads to work on mesh generation in the background.

Public Slots Documentation

slot handle_thread_complete

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

slot handle_warper_progress

cpp void handle_warper_progress()

Public Signals Documentation

signal new_mesh

cpp void new_mesh()

signal error_encountered

cpp void error_encountered( QString message )

signal progress

cpp void progress( int )

signal status

cpp void status( std::string )

Public Functions Documentation

function MeshManager

cpp MeshManager()

function ~MeshManager

cpp ~MeshManager()

function set_cache_enabled

cpp void set_cache_enabled( bool enabled )

Set if the cache should be enabled.

function set_cache_memory_percent

cpp void set_cache_memory_percent( int percent )

Set the memory cache size.

function set_parallel_enabled

cpp inline void set_parallel_enabled( bool enabled )

Set if parallel reconstruction should be enabled.

function set_num_threads

cpp inline void set_num_threads( int num_threads )

Set the number of threads for parallel reconstruction.

function generate_mesh

cpp void generate_mesh( const MeshWorkItem item )

generate and cache a mesh for this shape in a different thread

function get_mesh

cpp MeshHandle get_mesh( const MeshWorkItem & item, bool wait =false )

get a mesh for a MeshWorkItem

function get_mesh

cpp MeshHandle get_mesh( const Eigen::VectorXd & points, int domain, bool wait =false )

get a mesh for a set of points

function get_surface_reconstructor

cpp std::shared_ptr< SurfaceReconstructor > get_surface_reconstructor( int domain )

return the surface reconstructor for a given domain

function get_mesh_warper

cpp std::shared_ptr< MeshWarper > get_mesh_warper( int domain )

return the mesh warper for a given domain

function get_mesh_generator

cpp inline std::shared_ptr< MeshGenerator > get_mesh_generator()

return the mesh generator

function clear_cache

cpp void clear_cache()

clear the cache


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