#include <opennurbs_mesh.h>
◆ ON_MeshCache() [1/2]
ON_MeshCache::ON_MeshCache |
( |
| ) |
|
|
default |
◆ ~ON_MeshCache()
ON_MeshCache::~ON_MeshCache |
( |
| ) |
|
◆ ON_MeshCache() [2/2]
◆ ClearAllMeshes() [1/2]
void ON_MeshCache::ClearAllMeshes |
( |
| ) |
|
◆ ClearAllMeshes() [2/2]
void ON_MeshCache::ClearAllMeshes |
( |
bool |
bDeleteMeshes | ) |
|
- Parameters
-
bDeleteMeshes | [in] true ON_Mesh will be deleted. false ON_Mesh will not be deleted. This is typically done when the mesh was in the process of being created in a separate thread and memory pool, both of which were killed and the pointer to the mesh is no longer valid. |
◆ ClearMesh() [1/4]
void ON_MeshCache::ClearMesh |
( |
ON_UUID |
mesh_id | ) |
|
◆ ClearMesh() [2/4]
void ON_MeshCache::ClearMesh |
( |
ON::mesh_type |
mesh_type | ) |
|
◆ ClearMesh() [3/4]
void ON_MeshCache::ClearMesh |
( |
ON_UUID |
mesh_id, |
|
|
bool |
bDeleteMesh |
|
) |
| |
- Parameters
-
bDeleteMesh | [in] true ON_Mesh will be deleted. false ON_Mesh will not be deleted. This is typically done when the mesh was in the process of being created in a separate thread and memory pool, both of which were killed and the pointer to the mesh is no longer valid. |
◆ ClearMesh() [4/4]
void ON_MeshCache::ClearMesh |
( |
ON::mesh_type |
mesh_type, |
|
|
bool |
bDeleteMesh |
|
) |
| |
- Parameters
-
bDeleteMesh | [in] true ON_Mesh will be deleted. false ON_Mesh will not be deleted. This is typically done when the mesh was in the process of being created in a separate thread and memory pool, both of which were killed and the pointer to the mesh is no longer valid. |
◆ Dump()
void ON_MeshCache::Dump |
( |
ON_TextLog & |
text_log | ) |
const |
◆ Mesh() [1/2]
◆ Mesh() [2/2]
const ON_Mesh* ON_MeshCache::Mesh |
( |
ON::mesh_type |
mesh_type | ) |
const |
◆ MeshCount()
unsigned int ON_MeshCache::MeshCount |
( |
| ) |
const |
◆ MeshIdFromMeshType()
static ON_UUID ON_MeshCache::MeshIdFromMeshType |
( |
ON::mesh_type |
mesh_type | ) |
|
|
static |
- Returns
- The id that corresonds to the obsolete ON::mesh_type enum value.
Ids are used to allow custom meshes to be cached.
◆ MeshSharedPtr() [1/2]
std::shared_ptr<ON_Mesh> ON_MeshCache::MeshSharedPtr |
( |
ON_UUID |
mesh_id | ) |
const |
◆ MeshSharedPtr() [2/2]
std::shared_ptr<ON_Mesh> ON_MeshCache::MeshSharedPtr |
( |
ON::mesh_type |
mesh_type | ) |
const |
◆ operator=()
◆ Read()
◆ SetMesh() [1/2]
void ON_MeshCache::SetMesh |
( |
ON_UUID |
mesh_id, |
|
|
const std::shared_ptr< ON_Mesh > & |
mesh_sp |
|
) |
| |
◆ SetMesh() [2/2]
void ON_MeshCache::SetMesh |
( |
ON::mesh_type |
mesh_type, |
|
|
const std::shared_ptr< ON_Mesh > & |
mesh_sp |
|
) |
| |
◆ Transform()
bool ON_MeshCache::Transform |
( |
const ON_Xform & |
xform | ) |
|
◆ Write()
◆ AnalysisMeshId
const ON_UUID ON_MeshCache::AnalysisMeshId |
|
static |
◆ AnyMeshId
const ON_UUID ON_MeshCache::AnyMeshId |
|
static |
◆ CoarseMeshId
const ON_UUID ON_MeshCache::CoarseMeshId |
|
static |
Cached mesh with the fewest faces.
◆ Empty
◆ FineMeshId
const ON_UUID ON_MeshCache::FineMeshId |
|
static |
Cached mesh with the most faces.
◆ PreviewMeshId
const ON_UUID ON_MeshCache::PreviewMeshId |
|
static |
◆ RenderMeshId
const ON_UUID ON_MeshCache::RenderMeshId |
|
static |