|
Graphite Version 3
An experimental 3D geometry processing program
|
Stores the cell facets of a mesh (low-level store) More...
#include <geogram/mesh/mesh.h>
Public Member Functions | |
| MeshCellFacetsStore (Mesh &mesh) | |
| MeshCellFacetsStore constructor. | |
| index_t | adjacent_cell (index_t f) const |
| Gets a cell adjacent to a facet. | |
| void | set_adjacent_cell (index_t f, index_t c) |
| Sets a cell adjacent to a facet. | |
| const index_t * | adjacent_cell_ptr (index_t f) const |
| Gets a const pointer to a cell adjacent to a facet. | |
| index_t * | adjacent_cell_ptr (index_t f) |
| Gets a pointer to a cell adjacent to a facet. | |
Public Member Functions inherited from GEO::MeshSubElementsStore | |
| MeshSubElementsStore (Mesh &mesh) | |
| Constructs a new MeshSubElementStore. | |
| virtual | ~MeshSubElementsStore () |
| MeshElementStore destructor. | |
| index_t | nb () const |
| Gets the number of (sub-)elements. | |
| AttributesManager & | attributes () const |
| Gets the attributes manager. | |
| index_as_iterator | begin () const |
| Used by range-based for. | |
| index_as_iterator | end () const |
| Used by range-based for. | |
Protected Member Functions | |
| void | clear_store (bool keep_attributes, bool keep_memory=false) override |
| Removes all the elements and attributes. | |
| void | resize_store (index_t new_size) override |
| Resizes this MeshSubElementsStore. | |
| index_t | create_sub_element (index_t c=NO_CELL) |
| index_t | create_sub_elements (index_t nb) |
| void | copy (const MeshCellFacetsStore &rhs, bool copy_attributes=true) |
Protected Member Functions inherited from GEO::MeshSubElementsStore | |
| void | reserve_store (index_t nb_to_reserve) |
| Reserves space for new elements. | |
| index_t | create_sub_elements (index_t nb) |
| Creates a contiguous chunk of attributes for sub-elements. | |
| index_t | create_sub_element () |
| Creates attributes for a sub-element. | |
| void | adjust_store () |
| Makes the size of the store tightly match the number of the elements. | |
| void | copy (const MeshSubElementsStore &rhs, bool copy_attributes=true) |
| Copies a MeshSubElementsStore into this one. | |
Protected Attributes | |
| MeshVertices & | vertices_ |
| MeshCellsStore & | cells_ |
| vector< index_t > | adjacent_cell_ |
Protected Attributes inherited from GEO::MeshSubElementsStore | |
| Mesh & | mesh_ |
| AttributesManager | attributes_ |
| index_t | nb_ |
Friends | |
| class | MeshCells |
| class | Mesh |
| class | GeogramIOHandler |
| GEO::MeshCellFacetsStore::MeshCellFacetsStore | ( | Mesh & | mesh | ) |
MeshCellFacetsStore constructor.
| [in] | mesh | the mesh that this MeshCellFacetsStore is attached to |
|
overrideprotectedvirtual |
Removes all the elements and attributes.
| [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.
|
inlineprotected |
|
overrideprotectedvirtual |
Resizes this MeshSubElementsStore.
On exit, nb() == new_size, elements are created or destroyed if needed.
| [in] | new_size | the desired size |
Reimplemented from GEO::MeshSubElementsStore.
|
protected |
|
protected |