The MeshComponents class searches for topologic independent segments of the given mesh structure. More...
#include <TopoAlgorithm.h>
Classes | |
struct | CNofFacetsCompare |
Public Types | |
enum | TMode { OverEdge, OverPoint } |
Public Member Functions | |
MeshComponents (const MeshKernel &rclMesh) | |
Some important formulas:. | |
void | SearchForComponents (TMode tMode, const std::vector< unsigned long > &aSegment, std::vector< std::vector< unsigned long > > &aclT) const |
Does basically the same as the method above escept that only the faces in aSegment are regarded. | |
void | SearchForComponents (TMode tMode, std::vector< std::vector< unsigned long > > &aclT) const |
Searches for 'isles' of the mesh. | |
~MeshComponents () | |
Protected Attributes | |
const MeshKernel & | _rclMesh |
The MeshComponents class searches for topologic independent segments of the given mesh structure.
Definition at line 306 of file TopoAlgorithm.h.
Definition at line 309 of file TopoAlgorithm.h.
MeshComponents::MeshComponents | ( | const MeshKernel & | rclMesh | ) |
Some important formulas:.
Ne = 3Nv - Nb + 3B + 6(G-R) Nt = 2Nv - Nb + 2B + 4(G-R)
Ne <= 3Nv + 6(G-R) Nt <= 2Nv + 4(G-R)
Ne ~ 3Nv, Nv >> G, Nv >> R Nt ~ 2Nv, Nv >> G, Nv >> R
Ne = Edges Nt = Facets Nv = Vertices Nb = Boundary vertices B = Boundaries G = Genus (Number of holes) R = components
Definition at line 1407 of file TopoAlgorithm.cpp.
MeshComponents::~MeshComponents | ( | ) |
Definition at line 1412 of file TopoAlgorithm.cpp.
void MeshComponents::SearchForComponents | ( | TMode | tMode, | |
const std::vector< unsigned long > & | aSegment, | |||
std::vector< std::vector< unsigned long > > & | aclT | |||
) | const |
Does basically the same as the method above escept that only the faces in aSegment are regarded.
Definition at line 1427 of file TopoAlgorithm.cpp.
References _rclMesh, MeshCore::MeshAlgorithm::CountFacetFlag(), MeshCore::MeshKernel::CountFacets(), MeshCore::MeshKernel::GetFacets(), OverEdge, OverPoint, MeshCore::MeshAlgorithm::ResetFacetsFlag(), MeshCore::MeshAlgorithm::SetFacetFlag(), MeshCore::MeshFacet::VISIT, MeshCore::MeshKernel::VisitNeighbourFacets(), and MeshCore::MeshKernel::VisitNeighbourFacetsOverCorners().
void MeshComponents::SearchForComponents | ( | TMode | tMode, | |
std::vector< std::vector< unsigned long > > & | aclT | |||
) | const |
Searches for 'isles' of the mesh.
If tMode is OverEdge then facets sharing the same edge are regarded as connected, if tMode is OverPoint then facets sharing a common point are regarded as connected.
Definition at line 1416 of file TopoAlgorithm.cpp.
References _rclMesh, MeshCore::MeshKernel::CountFacets(), and k.
Referenced by Mesh::MeshObject::countComponents(), MeshCore::MeshTopoAlgorithm::FindComponents(), and Mesh::MeshObject::getComponents().
const MeshKernel& MeshCore::MeshComponents::_rclMesh [protected] |
Definition at line 340 of file TopoAlgorithm.h.
Referenced by SearchForComponents().