Structure which maps the vertex indices in Gocad::TSolid to the pair (region, index in region) in the RINGMesh::GeoModel.
More...
#include <geomodel_builder_gocad.h>
|
index_t | gocad_vertex_id (index_t id) const |
|
index_t | region_id (index_t id) const |
|
void | add_new_region (index_t region_id, const std::string ®ion_name) |
|
void | record_vertex_with_its_region (index_t gocad_vertex_id, index_t region_id) |
|
index_t | nb_regions () const |
|
std::tuple< bool, index_t > | find_region_id_from_name (const std::string ®ion_name) |
|
const std::vector< index_t > & | get_regions () const |
|
void | get_tetra_corners_with_this_region_id (index_t region_id, std::vector< index_t > ®ion_tetra_corners_local) const |
|
void | get_vertices_attributes_list_from_gocad_ids (const std::vector< std::vector< double > > &stored_attributes, index_t region_id, const std::map< index_t, index_t > &lighttsolid_atom_map, std::vector< std::vector< double > > ®ion_tetra_attributes) const |
|
std::vector< RegionLocalVertex > | get_vertices_list_and_local_ids_from_gocad_ids (const std::vector< vec3 > &stored_vertices, const index_t region_id, const std::map< index_t, index_t > &lighttsolid_atom_map) const |
|
index_t | local_id (index_t gocad_vertex_id) const |
|
index_t | region (index_t gocad_vertex_id) const |
|
void | add_vertex (index_t local_vertex_id, index_t region_id) |
|
void | reserve (index_t capacity) |
|
void | reserve_nb_vertices (index_t capacity) |
|
void | fill_with_lighttsolid_region_ids () |
|
void | fill_with_lighttsolid_local_ids () |
|
void | deal_with_same_region_atoms (const std::map< index_t, index_t > &lighttsolid_atom_map) |
|
Structure which maps the vertex indices in Gocad::TSolid to the pair (region, index in region) in the RINGMesh::GeoModel.
Definition at line 173 of file geomodel_builder_gocad.h.
◆ add_new_region()
void RINGMesh::VertexMap::add_new_region |
( |
index_t |
region_id, |
|
|
const std::string & |
region_name |
|
) |
| |
|
inline |
◆ add_vertex()
void RINGMesh::VertexMap::add_vertex |
( |
index_t |
local_vertex_id, |
|
|
index_t |
region_id |
|
) |
| |
|
inline |
◆ deal_with_same_region_atoms()
void RINGMesh::VertexMap::deal_with_same_region_atoms |
( |
const std::map< index_t, index_t > & |
lighttsolid_atom_map | ) |
|
|
inline |
◆ fill_with_lighttsolid_local_ids()
void RINGMesh::VertexMap::fill_with_lighttsolid_local_ids |
( |
| ) |
|
|
inline |
◆ fill_with_lighttsolid_region_ids()
void RINGMesh::VertexMap::fill_with_lighttsolid_region_ids |
( |
| ) |
|
|
inline |
◆ find_region_id_from_name()
std::tuple< bool, index_t > RINGMesh::VertexMap::find_region_id_from_name |
( |
const std::string & |
region_name | ) |
|
|
inline |
◆ get_regions()
const std::vector< index_t >& RINGMesh::VertexMap::get_regions |
( |
| ) |
const |
|
inline |
◆ get_tetra_corners_with_this_region_id()
void RINGMesh::VertexMap::get_tetra_corners_with_this_region_id |
( |
index_t |
region_id, |
|
|
std::vector< index_t > & |
region_tetra_corners_local |
|
) |
| const |
|
inline |
◆ get_vertices_attributes_list_from_gocad_ids()
void RINGMesh::VertexMap::get_vertices_attributes_list_from_gocad_ids |
( |
const std::vector< std::vector< double > > & |
stored_attributes, |
|
|
index_t |
region_id, |
|
|
const std::map< index_t, index_t > & |
lighttsolid_atom_map, |
|
|
std::vector< std::vector< double > > & |
region_tetra_attributes |
|
) |
| const |
|
inline |
◆ get_vertices_list_and_local_ids_from_gocad_ids()
std::vector< RegionLocalVertex > RINGMesh::VertexMap::get_vertices_list_and_local_ids_from_gocad_ids |
( |
const std::vector< vec3 > & |
stored_vertices, |
|
|
const index_t |
region_id, |
|
|
const std::map< index_t, index_t > & |
lighttsolid_atom_map |
|
) |
| const |
|
inline |
◆ gocad_vertex_id()
index_t RINGMesh::VertexMap::gocad_vertex_id |
( |
index_t |
id | ) |
const |
|
inline |
◆ local_id()
index_t RINGMesh::VertexMap::local_id |
( |
index_t |
gocad_vertex_id | ) |
const |
|
inline |
◆ nb_regions()
index_t RINGMesh::VertexMap::nb_regions |
( |
| ) |
const |
|
inline |
◆ record_vertex_with_its_region()
void RINGMesh::VertexMap::record_vertex_with_its_region |
( |
index_t |
gocad_vertex_id, |
|
|
index_t |
region_id |
|
) |
| |
|
inline |
◆ region()
index_t RINGMesh::VertexMap::region |
( |
index_t |
gocad_vertex_id | ) |
const |
|
inline |
◆ region_id()
index_t RINGMesh::VertexMap::region_id |
( |
index_t |
id | ) |
const |
|
inline |
◆ reserve()
void RINGMesh::VertexMap::reserve |
( |
index_t |
capacity | ) |
|
|
inline |
◆ reserve_nb_vertices()
void RINGMesh::VertexMap::reserve_nb_vertices |
( |
index_t |
capacity | ) |
|
|
inline |
◆ gocad_ids2local_ids_
std::vector< index_t > RINGMesh::VertexMap::gocad_ids2local_ids_ |
|
private |
TSolids & LightTSolids Mapping the indices of vertices from Gocad .so file to the local (in region) indices of vertices
Definition at line 483 of file geomodel_builder_gocad.h.
◆ gocad_ids2region_ids_
std::vector< index_t > RINGMesh::VertexMap::gocad_ids2region_ids_ |
|
private |
TSolids & LightTSolids Mapping the indices of vertices from Gocad .so file to the region containing them
Definition at line 489 of file geomodel_builder_gocad.h.
◆ local_ids_
std::vector< std::vector< index_t > > RINGMesh::VertexMap::local_ids_ |
LightTSolids One std::vector< index_t > per region. Regions vector are recorded in the same order as region_ids_. Mapping the indices of vertices from Gocad .so file to the local (in region) indices of vertices. No duplicates: Only the Vertex and the Atoms linking to a different region Vertex are recorded here.
Definition at line 444 of file geomodel_builder_gocad.h.
◆ region_ids_
std::vector< index_t > RINGMesh::VertexMap::region_ids_ |
|
private |
LightTSolids All the region IDs are stored in order here. Ex: 0, 1, 2, 3. No duplicates.
Definition at line 469 of file geomodel_builder_gocad.h.
◆ region_names_
std::vector< std::string > RINGMesh::VertexMap::region_names_ |
|
private |
LightTSolids The names of the regions matching the regions IDs. No duplicates.
Definition at line 475 of file geomodel_builder_gocad.h.
◆ vertices_gocad_id_
std::vector< index_t > RINGMesh::VertexMap::vertices_gocad_id_ |
|
private |
LightTSolids The gocad IDs of the vertices of the LightTSolid as read in the Tetra lines of the file. Duplicates: One vertex is recorded multiple times due to its presence in multiple tetras.
Definition at line 454 of file geomodel_builder_gocad.h.
◆ vertices_region_id_
std::vector< index_t > RINGMesh::VertexMap::vertices_region_id_ |
|
private |
LightTSolids The region IDs of the vertices of the LightTSolid as read in the # CTETRA lines of the file. Duplicates: One vertex is recorded multiple times due to its presence in multiple tetras.
Definition at line 462 of file geomodel_builder_gocad.h.
The documentation for this struct was generated from the following file: