|  | 
|  | MeshCells (Mesh &mesh) | 
|  | MeshCells constructor. 
 | 
|  | 
| index_t | nb_vertices (index_t c) const | 
|  | Gets the number of vertices of a cell. 
 | 
|  | 
| index_t | vertex (index_t c, index_t lv) const | 
|  | Gets a vertex of a cell by local vertex index. 
 | 
|  | 
| void | set_vertex (index_t c, index_t lv, index_t v) | 
|  | Sets a vertex of a cell by local vertex index. 
 | 
|  | 
| template<index_t DIM = 3> | 
| const vecng< DIM, double > & | point (index_t c, index_t lv) const | 
|  | Gets a point by cell and local vertex index. 
 | 
|  | 
| template<index_t DIM = 3> | 
| vecng< DIM, double > & | point (index_t c, index_t lv) | 
|  | Gets a point by cell and local vertex index. 
 | 
|  | 
| index_t | adjacent (index_t c, index_t lf) const | 
|  | Gets a cell adjacent to another one by local facet index. 
 | 
|  | 
| void | set_adjacent (index_t c, index_t lf, index_t c2) | 
|  | Sets a cell adjacent to another one by local facet index. 
 | 
|  | 
| index_t | facet_nb_vertices (index_t c, index_t lf) const | 
|  | Gets the number of vertices in a cell facet. 
 | 
|  | 
| index_t | facet_vertex (index_t c, index_t lf, index_t lv) const | 
|  | Gets a vertex of a cell by local facet index and local vertex index in the facet. 
 | 
|  | 
| index_t | facet_corner (index_t c, index_t lf, index_t lc) const | 
|  | Gets a corner of a cell by local facet index and local corner index in the facet. 
 | 
|  | 
| index_t | edge_vertex (index_t c, index_t le, index_t lv) const | 
|  | Gets a cell vertex by local edge index and local vertex index in the edge. 
 | 
|  | 
| index_t | edge_adjacent_facet (index_t c, index_t le, index_t lf) const | 
|  | Gets a cell local facet index by local edge index and local facet index in the edge. 
 | 
|  | 
| index_range | corners (index_t c) const | 
|  | Gets the corners of a cell. 
 | 
|  | 
| index_range | facets (index_t c) const | 
|  | Gets the facets of a cell. 
 | 
|  | 
| template<index_t DIM = 3> | 
| auto | points (index_t cell) const | 
|  | Gets the points associated with the vertices of a cell. 
 | 
|  | 
| template<index_t DIM = 3> | 
| auto | points (index_t cell) | 
|  | Gets the points associated with the vertices of a cell. 
 | 
|  | 
| auto | adjacent (index_t c) const | 
|  | Gets the cells adjacent to a given cell. 
 | 
|  | 
| void | clear (bool keep_attributes=true, bool keep_memory=false) override | 
|  | Removes all the elements and attributes. 
 | 
|  | 
| void | delete_elements (vector< index_t > &to_delete, bool remove_isolated_vertices=true) override | 
|  | Deletes a set of elements. 
 | 
|  | 
| void | permute_elements (vector< index_t > &permutation) override | 
|  | Applies a permutation to the elements and their attributes. 
 | 
|  | 
| index_t | create_cells (index_t nb_cells, MeshCellType type) | 
|  | Creates a contiguous chunk of cells of the same type. 
 | 
|  | 
| index_t | create_tets (index_t nb_tets) | 
|  | Creates a contiguous chunk of tetrahedra. 
 | 
|  | 
| index_t | create_hexes (index_t nb_hexes) | 
|  | Creates a contiguous chunk of hexahedra. 
 | 
|  | 
| index_t | create_prisms (index_t nb_prisms) | 
|  | Creates a contiguous chunk of prisms. 
 | 
|  | 
| index_t | create_pyramids (index_t nb_pyramids) | 
|  | Creates a contiguous chunk of pyramids. 
 | 
|  | 
| index_t | create_tet (index_t v1, index_t v2, index_t v3, index_t v4, index_t adj1=NO_CELL, index_t adj2=NO_CELL, index_t adj3=NO_CELL, index_t adj4=NO_CELL) | 
|  | Creates a tetrahedron. 
 | 
|  | 
| index_t | create_hex (index_t v1, index_t v2, index_t v3, index_t v4, index_t v5, index_t v6, index_t v7, index_t v8, index_t adj1=NO_CELL, index_t adj2=NO_CELL, index_t adj3=NO_CELL, index_t adj4=NO_CELL, index_t adj5=NO_CELL, index_t adj6=NO_CELL) | 
|  | Creates an hexahedron. 
 | 
|  | 
| index_t | create_prism (index_t v1, index_t v2, index_t v3, index_t v4, index_t v5, index_t v6, index_t adj1=NO_CELL, index_t adj2=NO_CELL, index_t adj3=NO_CELL, index_t adj4=NO_CELL, index_t adj5=NO_CELL) | 
|  | Creates a prism. 
 | 
|  | 
| index_t | create_pyramid (index_t v1, index_t v2, index_t v3, index_t v4, index_t v5, index_t adj1=NO_CELL, index_t adj2=NO_CELL, index_t adj3=NO_CELL, index_t adj4=NO_CELL, index_t adj5=NO_CELL) | 
|  | Creates a pyramid. 
 | 
|  | 
| index_t | create_connector (index_t v1, index_t v2, index_t v3, index_t v4, index_t adj1=NO_CELL, index_t adj2=NO_CELL, index_t adj3=NO_CELL) | 
|  | Creates a connector. 
 | 
|  | 
| void | connect (bool remove_trivial_slivers=true, bool verbose_if_OK=false) | 
|  | Connects the cells. 
 | 
|  | 
| void | compute_borders () | 
|  | Replaces the surfacic part of this mesh with the borders of the volumetric part. 
 | 
|  | 
| void | compute_borders (Attribute< index_t > &facet_cell) | 
|  | Replaces the surfacic part of this mesh with the borders of the volumetric part. 
 | 
|  | 
| void | assign_tet_mesh (coord_index_t dim, vector< double > &vertices, vector< index_t > &tets, bool steal_args) | 
|  | Copies a tetrahedron mesh into this Mesh. 
 | 
|  | 
| void | assign_tet_mesh (vector< index_t > &tets, bool steal_args) | 
|  | Copies a tetrahedron mesh into this Mesh. 
 | 
|  | 
| void | pop () override | 
|  | Removes the last element. 
 | 
|  | 
| index_t | tet_adjacent (index_t t, index_t lf) const | 
|  | 
| index_t | find_tet_adjacent (index_t t, index_t t2) const | 
|  | 
| index_t | tet_vertex (index_t t, index_t lv) const | 
|  | 
| index_t | find_tet_vertex (index_t t, index_t v) const | 
|  | 
| index_t | tet_facet_vertex (index_t t, index_t lf, index_t lv) const | 
|  | Gets a vertex of a tetrahedron by local facet index and local vertex index in facet. 
 | 
|  | 
| index_t | find_tet_facet (index_t t, index_t v1, index_t v2, index_t v3) const | 
|  | Finds the local index of a facet in a tetrahedron by the global indices of its vertices. 
 | 
|  | 
|  | MeshCellsStore (Mesh &mesh) | 
|  | 
| bool | are_simplices () const | 
|  | Tests whether all the cells are tetrahedra. 
 | 
|  | 
| MeshCellType | type (index_t c) const | 
|  | Gets the type of a cell. 
 | 
|  | 
| const CellDescriptor & | descriptor (index_t c) const | 
|  | Gets the descriptor of a cell. 
 | 
|  | 
| index_t | nb_corners (index_t c) const | 
|  | Gets the number of corners of a cell. 
 | 
|  | 
| index_t | corners_begin (index_t c) const | 
|  | Gets the first element for iterating over the corners of a cell. 
 | 
|  | 
| index_t | corners_end (index_t c) const | 
|  | Gets the upper limit for iterating over the corners of a cell. 
 | 
|  | 
| index_t | corner (index_t c, index_t lv) const | 
|  | Gets a corner of a cell by local vertex index. 
 | 
|  | 
| index_t | nb_facets (index_t c) const | 
|  | Gets the number of facets of a cell. 
 | 
|  | 
| index_t | facets_begin (index_t c) const | 
|  | Gets the first element for iterating over the facets of a cell. 
 | 
|  | 
| index_t | facets_end (index_t c) const | 
|  | Gets the upper limit for iterating over the facets of a cell. 
 | 
|  | 
| index_t | facet (index_t c, index_t lf) const | 
|  | Gets a facet of a cell by local facet index. 
 | 
|  | 
| index_t | nb_edges (index_t c) const | 
|  | Gets the number of edges in a cell. 
 | 
|  | 
| index_t * | cell_ptr_ptr (index_t c) | 
|  | Gets a pointer to a cell pointer index by cell index. 
 | 
|  | 
| const index_t * | cell_ptr_ptr (index_t c) const | 
|  | Gets a pointer to a cell pointer index by cell index. 
 | 
|  | 
| Numeric::uint8 * | cell_type_ptr (index_t c) | 
|  | Gets a pointer to a cell type by cell index. 
 | 
|  | 
| const Numeric::uint8 * | cell_type_ptr (index_t c) const | 
|  | Gets a pointer to a cell type by cell index. 
 | 
|  | 
|  | 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. 
 | 
|  | 
|  | 
| void | is_not_simplicial () | 
|  | Indicates that the stored elements are no longer only tetrahedra. 
 | 
|  | 
| bool | facets_match (index_t c1, index_t f1, index_t c2, index_t f2) const | 
|  | Tests whether two cell facets can be connected. 
 | 
|  | 
| index_t | find_cell_vertex (index_t c, index_t v) const | 
|  | Finds the local index of a vertex in a cell. 
 | 
|  | 
| index_t | find_cell_facet (index_t c1, index_t c2, index_t f2) const | 
|  | Finds the local index of a facet in a cell that can be connected to a facet of another cell. 
 | 
|  | 
| bool | triangular_facet_matches_quad_facet (index_t c1, index_t lf1, index_t c2, index_t lf2) const | 
|  | Tests whether a triangular facet matches a quad facet. 
 | 
|  | 
| bool | triangular_facets_have_common_edge (index_t c1, index_t f1, index_t c2, index_t f2, index_t &e1, index_t &e2) const | 
|  | Tests whether two triangular cell facets have a common edge. 
 | 
|  | 
| bool | create_connector (index_t c1, index_t lf1, const std::vector< std::pair< index_t, index_t > > &matches) | 
|  | Creates a connector between a quadrandular facet and two triangular facets. 
 | 
|  | 
| void | connect_tets () | 
|  | Optimized implementation of connect() used when the mesh is simplicial. 
 | 
|  | 
| 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 (MeshCellType type) | 
|  | 
| index_t | create_sub_elements (index_t nb, MeshCellType type) | 
|  | 
| void | copy (const MeshCellsStore &rhs, bool copy_attributes=true) | 
|  | 
| 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. 
 | 
|  | 
The cells of a mesh. 
Definition at line 2271 of file mesh.h.