RINGMesh  Version 5.0.0
A programming library for geological model meshes
RINGMesh::GeoModelMeshBase< DIMENSION > Class Template Reference

#include <geomodel_mesh.h>

Inheritance diagram for RINGMesh::GeoModelMeshBase< DIMENSION >:
RINGMesh::GeoModelMesh< DIMENSION >

Public Member Functions

virtual ~GeoModelMeshBase ()
 
const GeoModel< DIMENSION > & geomodel () const
 
void remove_colocated_vertices ()
 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_vertex_id in the GeoModelMeshEntity of the GeoModel are updated too. More...
 
void erase_invalid_vertices ()
 Remove all invalid GMEVertex and delete the vertices that are not anymore in any GeoModelEntity. More...
 
void change_point_set_mesh_data_structure (const MeshType &type)
 
void change_line_mesh_data_structure (const MeshType &type)
 
void change_surface_mesh_data_structure (const MeshType &type)
 

Public Attributes

GeoModelMeshVertices< DIMENSION > vertices
 
GeoModelMeshEdges< DIMENSION > edges
 
GeoModelMeshWells< DIMENSION > wells
 
GeoModelMeshPolygons< DIMENSION > polygons
 

Protected Member Functions

 GeoModelMeshBase (GeoModelMesh< DIMENSION > &gmm, GeoModel< DIMENSION > &geomodel)
 

Protected Attributes

const GeoModel< DIMENSION > & geomodel_
 
MeshSet< DIMENSION > mesh_set_
 Mesh storing all the elements. More...
 

Private Member Functions

 ringmesh_disable_copy_and_move (GeoModelMeshBase)
 
 ringmesh_template_assert_2d_or_3d (DIMENSION)
 

Detailed Description

template<index_t DIMENSION>
class RINGMesh::GeoModelMeshBase< DIMENSION >

Definition at line 1532 of file geomodel_mesh.h.

Constructor & Destructor Documentation

◆ ~GeoModelMeshBase()

template<index_t DIMENSION>
RINGMesh::GeoModelMeshBase< DIMENSION >::~GeoModelMeshBase ( )
virtual

Definition at line 2717 of file geomodel_mesh.cpp.

◆ GeoModelMeshBase()

template<index_t DIMENSION>
RINGMesh::GeoModelMeshBase< DIMENSION >::GeoModelMeshBase ( GeoModelMesh< DIMENSION > &  gmm,
GeoModel< DIMENSION > &  geomodel 
)
protected

Definition at line 2706 of file geomodel_mesh.cpp.

Member Function Documentation

◆ change_line_mesh_data_structure()

template<index_t DIMENSION>
void RINGMesh::GeoModelMeshBase< DIMENSION >::change_line_mesh_data_structure ( const MeshType type)

Definition at line 2747 of file geomodel_mesh.cpp.

◆ change_point_set_mesh_data_structure()

template<index_t DIMENSION>
void RINGMesh::GeoModelMeshBase< DIMENSION >::change_point_set_mesh_data_structure ( const MeshType type)

Definition at line 2736 of file geomodel_mesh.cpp.

◆ change_surface_mesh_data_structure()

template<index_t DIMENSION>
void RINGMesh::GeoModelMeshBase< DIMENSION >::change_surface_mesh_data_structure ( const MeshType type)

Definition at line 2758 of file geomodel_mesh.cpp.

◆ erase_invalid_vertices()

template<index_t DIMENSION>
void RINGMesh::GeoModelMeshBase< DIMENSION >::erase_invalid_vertices ( )

Remove all invalid GMEVertex and delete the vertices that are not anymore in any GeoModelEntity.

◆ erase_vertices()

template<index_t DIMENSION>
void RINGMesh::GeoModelMeshBase< DIMENSION >::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_vertex_id in the GeoModelMeshEntity of the GeoModel are updated too.

Parameters
[in,out]to_deletecan be NO_ID or give the index of a kept vertex with which information should be merged. It is recycled to give the mapping between old and new vertex indices
Precondition
to_delete[ v ] is either NO_ID, or is equal or inferior to v

Definition at line 2729 of file geomodel_mesh.cpp.

◆ geomodel()

template<index_t DIMENSION>
const GeoModel< DIMENSION >& RINGMesh::GeoModelMeshBase< DIMENSION >::geomodel ( ) const
inline

Definition at line 1540 of file geomodel_mesh.h.

◆ remove_colocated_vertices()

template<index_t DIMENSION>
void RINGMesh::GeoModelMeshBase< DIMENSION >::remove_colocated_vertices ( )

Remove colocated vertices.

Definition at line 2723 of file geomodel_mesh.cpp.

◆ ringmesh_disable_copy_and_move()

template<index_t DIMENSION>
RINGMesh::GeoModelMeshBase< DIMENSION >::ringmesh_disable_copy_and_move ( GeoModelMeshBase< DIMENSION >  )
private

◆ ringmesh_template_assert_2d_or_3d()

template<index_t DIMENSION>
RINGMesh::GeoModelMeshBase< DIMENSION >::ringmesh_template_assert_2d_or_3d ( DIMENSION  )
private

Member Data Documentation

◆ edges

template<index_t DIMENSION>
GeoModelMeshEdges< DIMENSION > RINGMesh::GeoModelMeshBase< DIMENSION >::edges

Definition at line 1587 of file geomodel_mesh.h.

◆ geomodel_

template<index_t DIMENSION>
const GeoModel< DIMENSION >& RINGMesh::GeoModelMeshBase< DIMENSION >::geomodel_
protected

Attached GeoModel

Definition at line 1576 of file geomodel_mesh.h.

◆ mesh_set_

template<index_t DIMENSION>
MeshSet< DIMENSION > RINGMesh::GeoModelMeshBase< DIMENSION >::mesh_set_
protected

Mesh storing all the elements.

Definition at line 1579 of file geomodel_mesh.h.

◆ polygons

template<index_t DIMENSION>
GeoModelMeshPolygons< DIMENSION > RINGMesh::GeoModelMeshBase< DIMENSION >::polygons

Definition at line 1589 of file geomodel_mesh.h.

◆ vertices

template<index_t DIMENSION>
GeoModelMeshVertices< DIMENSION > RINGMesh::GeoModelMeshBase< DIMENSION >::vertices

Definition at line 1586 of file geomodel_mesh.h.

◆ wells

template<index_t DIMENSION>
GeoModelMeshWells< DIMENSION > RINGMesh::GeoModelMeshBase< DIMENSION >::wells

Definition at line 1588 of file geomodel_mesh.h.


The documentation for this class was generated from the following files: