Stores the cells of a mesh (low-level store)
More...
#include <geogram/mesh/mesh.h>
|
class | Mesh |
|
class | GeogramIOHandler |
|
Stores the cells of a mesh (low-level store)
Definition at line 1538 of file mesh.h.
◆ are_simplices()
bool GEO::MeshCellsStore::are_simplices |
( |
| ) |
const |
|
inline |
Tests whether all the cells are tetrahedra.
Storage and access are optimized when all the cells are tetrahedra
- Return values
-
true | if all the cells are tetrahedra |
false | otherwise |
Definition at line 1549 of file mesh.h.
◆ cell_type_to_cell_descriptor()
static const CellDescriptor& GEO::MeshCellsStore::cell_type_to_cell_descriptor |
( |
MeshCellType |
t | ) |
|
|
inlinestatic |
Gets a descriptor by cell type.
The descriptor of a cell is a set of static arrays that facilitate some accesses (most client code do not need to use this function)
- Parameters
-
[in] | t | one of MESH_TET, MESH_HEX, MESH_PRISM, MESH_PYRAMID, MESH_CONNECTOR |
- Returns
- the descriptor of cell
c
Definition at line 1591 of file mesh.h.
◆ clear_store()
void GEO::MeshCellsStore::clear_store |
( |
bool |
keep_attributes, |
|
|
bool |
keep_memory = false |
|
) |
| |
|
overrideprotectedvirtual |
Removes all the elements and attributes.
- Parameters
-
[in] | keep_attributes | if true, then all the existing attribute names / bindings are kept (but they are cleared). If false, they are destroyed. |
[in] | keep_memory | if true, then memory is kept and can be reused by subsequent mesh element creations. |
Reimplemented from GEO::MeshSubElementsStore.
◆ corner()
Gets a corner of a cell by local vertex index.
- Parameters
-
[in] | c | the cell, in 0..nb()-1 |
[in] | lv | the local vertex index, in 0..nb_corners(c)-1 |
- Returns
- the corner incident to vertex
lv
in cell c
Definition at line 1636 of file mesh.h.
◆ corners_begin()
Gets the first element for iterating over the corners of a cell.
- Parameters
-
[in] | c | the cell, in 0..nb()-1 |
- Returns
- the first corner of the cell
Definition at line 1614 of file mesh.h.
◆ corners_end()
Gets the upper limit for iterating over the corners of a cell.
- Parameters
-
[in] | c | the cell, in 0..nb()-1 |
- Returns
- one position past the last corner of the cell
Definition at line 1625 of file mesh.h.
◆ descriptor()
Gets the descriptor of a cell.
The descriptor of a cell is a set of static arrays that facilitate some accesses (most client code do not need to use this function)
- Parameters
-
[in] | c | a cell, in 0..nb()-1 |
- Returns
- the descriptor of cell
c
Definition at line 1572 of file mesh.h.
◆ facet()
Gets a facet of a cell by local facet index.
- Parameters
-
[in] | c | the cell, in 0..nb()-1 |
[in] | lf | the local facet index, in 0..nb_facets(c)-1 |
- Returns
- the facet
lf
in cell c
Definition at line 1684 of file mesh.h.
◆ facets_begin()
Gets the first element for iterating over the facets of a cell.
- Parameters
-
[in] | c | the cell, in 0..nb()-1 |
- Returns
- the first facet of the cell
Definition at line 1662 of file mesh.h.
◆ facets_end()
Gets the upper limit for iterating over the facets of a cell.
- Parameters
-
[in] | c | the cell, in 0..nb()-1 |
- Returns
- one position past the last facet of the facet
Definition at line 1673 of file mesh.h.
◆ nb_corners()
Gets the number of corners of a cell.
- Parameters
-
[in] | c | a cell, in 0..nb()-1 |
- Returns
- the number of corners of cell
c
Definition at line 1603 of file mesh.h.
◆ nb_edges()
Gets the number of edges in a cell.
- Parameters
-
[in] | c | the cell, in 0..nb()-1 |
- Returns
- the number of edges in cell
c
Definition at line 1695 of file mesh.h.
◆ nb_facets()
Gets the number of facets of a cell.
- Parameters
-
[in] | c | the cell, in 0..nb()-1 |
- Returns
- the number of facets of cell
c
Definition at line 1651 of file mesh.h.
◆ resize_store()
void GEO::MeshCellsStore::resize_store |
( |
index_t |
new_size | ) |
|
|
overrideprotectedvirtual |
◆ type()
MeshCellType GEO::MeshCellsStore::type |
( |
index_t |
c | ) |
const |
|
inline |
Gets the type of a cell.
- Parameters
-
[in] | c | the cell, in 0..nb()-1 |
- Returns
- one of MESH_TET, MESH_HEX, MESH_PRISM, MESH_PYRAMID, MESH_CONNECTOR.
Definition at line 1559 of file mesh.h.
The documentation for this class was generated from the following file: