RINGMesh
Version 5.0.0
A programming library for geological model meshes
|
#include <geomodel_mesh.h>
Public Member Functions | |
GeoModelMeshVertices (GeoModelMesh3D &gmm, GeoModel3D &gm, std::unique_ptr< PointSetMesh3D > &mesh) | |
void | clear () override |
Clear the vertices - clear the gme_vertices_ - clear global vertex information in the all BMME. More... | |
index_t | nb_total_vertices () const override |
return the number of all vertices it is computed summing all entities.nb(). More... | |
index_t | fill_vertices () override |
Public Member Functions inherited from RINGMesh::GeoModelMeshVerticesBase< 3 > | |
GEO::AttributesManager & | attribute_manager () const |
bool | is_initialized () const |
void | test_and_initialize () const |
index_t | nb () const |
Number of non colocated vertices stored. More... | |
const vecn< DIMENSION > & | vertex (index_t v) const |
Coordinates of a vertex of the GeoModel. More... | |
index_t | index (const vecn< DIMENSION > &p) const |
Returns the index of the given vertex in the geomodel. More... | |
index_t | geomodel_vertex_id (const gmme_id &mesh_entity, index_t entity_vertex_index=0) const |
Get the GeoModelMesh index of a GeoModelMeshEntity vertex from its index in that GeoModelMeshEntity. More... | |
index_t | geomodel_vertex_id (const gmme_id &mesh_entity, const ElementLocalVertex &element_local_vertex) const |
Get the GeoModelMesh index of a GeoModelMeshEntity vertex from its index in that GeoModelMeshEntity. More... | |
std::vector< index_t > | mesh_entity_vertex_id (const gmme_id &mesh_entity, index_t geomodel_vertex_id) const |
Get the GeoModelMeshEntity vertices from its index in the GeoModelMesh. More... | |
const std::vector< GMEVertex > & | gme_vertices (index_t v) const |
Get the vertices in GeoModelEntity corresponding to the given unique vertex. More... | |
std::vector< GMEVertex > | gme_type_vertices (const MeshEntityType &entity_type, index_t vertex) const |
Get the vertex indices in the specified MeshEntity type corresponding to the given unique vertex. More... | |
index_t | add_vertex (const vecn< DIMENSION > &point) |
To use when building the geomodel by first adding its vertices. More... | |
index_t | add_vertices (const std::vector< vecn< DIMENSION > > &points) |
void | update_point (index_t v, const vecn< DIMENSION > &point) |
Set the point coordinates of all the vertices that share this unique vertex, including the unique vertex itself. More... | |
void | update_vertex_mapping (const gmme_id &entity_id, index_t entity_vertex_index, index_t geomodel_vertex_index) |
void | unbind_geomodel_vertex_map (const gmme_id &mesh_entity_id) |
void | bind_geomodel_vertex_map (const gmme_id &mesh_entity_id) |
const NNSearch< DIMENSION > & | nn_search () const |
void | remove_colocated () |
Remove colocated vertices. More... | |
void | erase_vertices (std::vector< index_t > &to_delete) |
Delete vertices for which to_delete[i] != i The global vertices are deleted, gme_vertices_ is updated and the geomodel_vertx_id in the GeoModelMeshEntity of the GeoModel are updated too. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from RINGMesh::GeoModelMeshVerticesBase< 3 > | |
GeoModelMeshVerticesBase (GeoModelMesh< DIMENSION > &gmm, GeoModel< DIMENSION > &gm, std::unique_ptr< PointSetMesh< DIMENSION > > &mesh) | |
void | fill_vertices_for_entity_type (const GeoModel< DIMENSION > &M, const MeshEntityType &entity_type, index_t &count) |
Protected Member Functions inherited from RINGMesh::GeoModelMeshCommon< DIMENSION > | |
GeoModelMeshCommon (GeoModelMesh< DIMENSION > &gmm, GeoModel< DIMENSION > &geomodel) | |
virtual | ~GeoModelMeshCommon ()=default |
void | set_mesh (MeshBase< DIMENSION > *mesh) |
void | save_mesh (const std::string &filename) const |
Protected Attributes inherited from RINGMesh::GeoModelMeshVerticesBase< 3 > | |
std::unique_ptr< PointSetMesh< DIMENSION > > & | mesh_ |
Attached Mesh. More... | |
GeoModelVertexMapper | vertex_mapper_ |
Mapper from/to GeoModelMeshEntity vertices. More... | |
Protected Attributes inherited from RINGMesh::GeoModelMeshCommon< DIMENSION > | |
GeoModelMesh< DIMENSION > & | gmm_ |
Attached GeoModelMesh. More... | |
GeoModel< DIMENSION > & | geomodel_ |
Attached GeoModel. More... | |
MeshBase< DIMENSION > * | mesh_base_ |
Attached MeshBase. More... | |
Definition at line 522 of file geomodel_mesh.h.
RINGMesh::GeoModelMeshVertices< 3 >::GeoModelMeshVertices | ( | GeoModelMesh3D & | gmm, |
GeoModel3D & | gm, | ||
std::unique_ptr< PointSetMesh3D > & | mesh | ||
) |
Definition at line 803 of file geomodel_mesh.cpp.
|
overridevirtual |
Clear the vertices - clear the gme_vertices_ - clear global vertex information in the all BMME.
Reimplemented from RINGMesh::GeoModelMeshVerticesBase< 3 >.
Definition at line 810 of file geomodel_mesh.cpp.
|
overridevirtual |
Reimplemented from RINGMesh::GeoModelMeshVerticesBase< 3 >.
Definition at line 824 of file geomodel_mesh.cpp.
|
overridevirtual |
return the number of all vertices it is computed summing all entities.nb().
Reimplemented from RINGMesh::GeoModelMeshVerticesBase< 3 >.
Definition at line 816 of file geomodel_mesh.cpp.