|  | 
|  | MeshFacets (Mesh &mesh) | 
|  | MeshFacets constructor. 
 | 
|  | 
| index_t | nb_vertices (index_t f) const | 
|  | Gets the number of vertices of a facet. 
 | 
|  | 
| index_t | vertex (index_t f, index_t lv) const | 
|  | Gets a vertex by facet and local vertex index. 
 | 
|  | 
| template<index_t DIM = 3> | 
| const vecng< DIM, double > & | point (index_t f, index_t lv) const | 
|  | Gets a point by facet and local vertex index. 
 | 
|  | 
| template<index_t DIM = 3> | 
| vecng< DIM, double > & | point (index_t f, index_t lv) | 
|  | Gets a point by facet and local vertex index. 
 | 
|  | 
| void | set_vertex (index_t f, index_t lv, index_t v) | 
|  | Sets a vertex by facet and local vertex index. 
 | 
|  | 
| index_t | find_vertex (index_t f, index_t v) const | 
|  | Gets the local index of a vertex in a facet. 
 | 
|  | 
| index_t | find_common_vertex (index_t f1, index_t f2) const | 
|  | finds a common vertex shared by two facets 
 | 
|  | 
| index_t | adjacent (index_t f, index_t le) const | 
|  | Gets an adjacent facet by facet and local edge index. 
 | 
|  | 
| index_t | find_adjacent (index_t f, index_t f2) const | 
|  | Gets the local index of a facet adjacent to another one. 
 | 
|  | 
| void | set_adjacent (index_t f, index_t le, index_t f2) | 
|  | Sets an adjacent facet by facet and local edge index. 
 | 
|  | 
| index_t | next_corner_around_facet (index_t f, index_t c) const | 
|  | Gets the successor of a corner around a facet. 
 | 
|  | 
| index_t | prev_corner_around_facet (index_t f, index_t c) const | 
|  | Gets the predecessor of a corner around a facet. 
 | 
|  | 
| index_t | find_edge (index_t f, index_t v1, index_t v2) const | 
|  | Finds an edge by vertex indices. 
 | 
|  | 
| 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. 
 | 
|  | 
| void | clear (bool keep_attributes=true, bool keep_memory=false) override | 
|  | Removes all the elements and attributes. 
 | 
|  | 
| index_t | create_facets (index_t nb_facets, index_t nb_vertices_per_polygon) | 
|  | Creates a contiguous chunk of facets. 
 | 
|  | 
| void | reserve (index_t nb_to_reserve) | 
|  | Reserves space for new facets. 
 | 
|  | 
| index_t | create_triangles (index_t nb_triangles) | 
|  | Creates a contiguous chunk of triangles. 
 | 
|  | 
| index_t | create_quads (index_t nb_quads) | 
|  | Creates a contiguous chunk of quads. 
 | 
|  | 
| index_t | create_triangle (index_t v1, index_t v2, index_t v3) | 
|  | Creates a triangle. 
 | 
|  | 
| index_t | create_quad (index_t v1, index_t v2, index_t v3, index_t v4) | 
|  | Creates a quad. 
 | 
|  | 
| index_t | create_polygon (index_t nb_vertices) | 
|  | Creates a polygonal facet. 
 | 
|  | 
| index_t | create_polygon (index_t nb_vertices, const index_t *vertices) | 
|  | Creates a polygonal facet. 
 | 
|  | 
| index_t | create_polygon (const vector< index_t > &vertices) | 
|  | Creates a polygonal facet. 
 | 
|  | 
| void | connect () | 
|  | Connects the facets. 
 | 
|  | 
| void | connect (index_t facets_begin, index_t facets_end) | 
|  | Connects a contiguous sequence of facets. 
 | 
|  | 
| void | triangulate () | 
|  | Triangulates the facets. 
 | 
|  | 
| void | flip (index_t f) | 
|  | Flips a facet. 
 | 
|  | 
| void | compute_borders () | 
|  | Replaces the edges of this mesh with the borders of the surfacic part. 
 | 
|  | 
| void | assign_triangle_mesh (coord_index_t dim, vector< double > &vertices, vector< index_t > &triangles, bool steal_args) | 
|  | Copies a triangle mesh into this Mesh. 
 | 
|  | 
| void | assign_triangle_mesh (vector< index_t > &triangles, bool steal_args) | 
|  | 
| void | pop () override | 
|  | Removes the last element. 
 | 
|  | 
| index_range | corners (index_t f) const | 
|  | Gets the corners of a facet. 
 | 
|  | 
| auto | vertices (index_t f) const | 
|  | Gets the vertices of a facet. 
 | 
|  | 
| auto | adjacent (index_t f) const | 
|  | Gets the facets adjacent to a given facet. 
 | 
|  | 
| template<index_t DIM = 3> | 
| auto | points (index_t f) const | 
|  | Gets the points associated with the vertices of a facet. 
 | 
|  | 
| template<index_t DIM = 3> | 
| auto | points (index_t f) | 
|  | Gets the points associated with the vertices of a facet. 
 | 
|  | 
| auto | triangles (index_t f) const | 
|  | Decomposes a facet into triangles. 
 | 
|  | 
| template<index_t DIM = 3> | 
| auto | triangle_points (index_t f) const | 
|  | Decomposes a facet into triangles. 
 | 
|  | 
| template<index_t DIM = 3> | 
| auto | triangle_points (index_t f) | 
|  | Decomposes a facet into triangles. 
 | 
|  | 
|  | MeshFacetsStore (Mesh &mesh) | 
|  | 
| index_t | corners_begin (index_t f) const | 
|  | Gets the first element for iterating over the corners of a facet. 
 | 
|  | 
| index_t | corners_end (index_t f) const | 
|  | Gets the upper limit for iterating over the corners of a facet. 
 | 
|  | 
| index_t | nb_corners (index_t f) const | 
|  | Gets the number of corners in a facet. 
 | 
|  | 
| index_t | corner (index_t f, index_t lv) const | 
|  | Gets a corner by facet and local vertex index. 
 | 
|  | 
| bool | are_simplices () const | 
|  | Tests whether all the facets are triangles. 
 | 
|  | 
| index_t * | corners_begin_ptr (index_t f) | 
|  | Gets a pointer to the first element for iterating over the corners of a facet. 
 | 
|  | 
| const index_t * | corners_begin_ptr (index_t f) const | 
|  | Gets a pointer to the first element for iterating over the corners of a facet. 
 | 
|  | 
|  | 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. 
 | 
|  | 
The facets of a mesh. 
Definition at line 1136 of file mesh.h.