The edges of a mesh.
More...
#include <geogram/mesh/mesh.h>
|
class | Mesh |
|
class | GeogramIOHandler |
|
The edges of a mesh.
Definition at line 625 of file mesh.h.
◆ clear()
void GEO::MeshEdges::clear |
( |
bool |
keep_attributes = true , |
|
|
bool |
keep_memory = false |
|
) |
| |
|
overridevirtual |
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. |
Implements GEO::MeshElements.
◆ clear_store()
void GEO::MeshEdges::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.
◆ create_edge() [1/2]
index_t GEO::MeshEdges::create_edge |
( |
| ) |
|
|
inline |
Creates a new edge.
- Returns
- the index of the created edge
Definition at line 682 of file mesh.h.
◆ create_edge() [2/2]
Creates a new edge.
- Parameters
-
[in] | v1,v2 | global indices of the vertices of the edge |
- Returns
- the index of the created edge
Definition at line 700 of file mesh.h.
◆ create_edges()
Creates a batch of edges.
- Parameters
-
[in] | nb | number of edges to create |
- Returns
- the index of the first created edge
Definition at line 691 of file mesh.h.
◆ delete_elements()
void GEO::MeshEdges::delete_elements |
( |
vector< index_t > & |
to_delete, |
|
|
bool |
remove_isolated_vertices = true |
|
) |
| |
|
overridevirtual |
Deletes a set of elements.
- Parameters
-
[in] | to_delete | a vector of size nb(). If to_delete[e] is different from 0, then element e will be destroyed, else it will be kept. On exit, to_delete is modified (it is used for internal bookkeeping). |
[in] | remove_isolated_vertices | if true, then the vertices that are no longer incident to any element are deleted. |
Implements GEO::MeshElements.
◆ permute_elements()
void GEO::MeshEdges::permute_elements |
( |
vector< index_t > & |
permutation | ) |
|
|
overridevirtual |
Applies a permutation to the elements and their attributes.
On exit, permutation is modified (used for internal bookkeeping). Applying a permutation permutation
is equivalent to:
for(i=0; i<permutation.size(); i++) {
data2[i] = data[permutation[i]]
}
data = data2 ;
Implements GEO::MeshElements.
◆ resize_store()
void GEO::MeshEdges::resize_store |
( |
index_t |
new_size | ) |
|
|
overrideprotectedvirtual |
◆ set_vertex()
Sets a vertex of an edge.
- Parameters
-
[in] | e | index of the edge |
[in] | lv | local index of the vertex, in {0,1} |
[in] | v | global index of the vertex |
Definition at line 649 of file mesh.h.
◆ vertex()
Gets the index of an edge vertex.
- Parameters
-
[in] | e | index of the edge |
[in] | lv | local index of the vertex, in {0,1} |
- Returns
- the global index of vertex
lv
in edge e
Definition at line 637 of file mesh.h.
◆ vertex_index_ptr() [1/2]
Gets a pointer to a vertex index by corner index.
- Parameters
-
[in] | c | corner index (2 * edge index + 0 or 1) |
- Returns
- a pointer to the index of the vertex.
- Note
- Normal uses do not call this function
Definition at line 662 of file mesh.h.
◆ vertex_index_ptr() [2/2]
Gets a pointer to a vertex index by corner index.
- Parameters
-
[in] | c | corner index (2 * edge index + 0 or 1) |
- Returns
- a pointer to the index of the vertex.
- Note
- Normal uses do not call this function
Definition at line 673 of file mesh.h.
The documentation for this class was generated from the following file: