MeshCore::MeshComponents Class Reference

The MeshComponents class searches for topologic independent segments of the given mesh structure. More...

#include <TopoAlgorithm.h>

List of all members.

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

Detailed Description

The MeshComponents class searches for topologic independent segments of the given mesh structure.

Author:
Werner Mayer

Definition at line 306 of file TopoAlgorithm.h.


Member Enumeration Documentation

Enumerator:
OverEdge 
OverPoint 

Definition at line 309 of file TopoAlgorithm.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void MeshComponents::SearchForComponents ( TMode  tMode,
const std::vector< unsigned long > &  aSegment,
std::vector< std::vector< unsigned long > > &  aclT 
) const
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().


Member Data Documentation

Definition at line 340 of file TopoAlgorithm.h.

Referenced by SearchForComponents().


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

Generated on Wed Nov 23 19:02:23 2011 for FreeCAD by  doxygen 1.6.1