MeshCore::MeshRefFacetToFacets Class Reference

The MeshRefFacetToFacets builds up a structure to have access to all facets sharing at least one same point. More...

#include <Algorithm.h>

List of all members.

Public Member Functions

 MeshRefFacetToFacets (const MeshKernel &rclM)
 Construction.
const std::set< unsigned long > & operator[] (unsigned long) const
 Returns a set of facets sharing one or more points with the facet with index ulFacetIndex.
void Rebuild (void)
 Rebuilds up data structure.
 ~MeshRefFacetToFacets (void)
 Destruction.

Protected Attributes

std::vector< std::set
< unsigned long > > 
_map
const MeshKernel_rclMesh
 The mesh kernel.

Detailed Description

The MeshRefFacetToFacets builds up a structure to have access to all facets sharing at least one same point.

Note:
If the underlying mesh kernel gets changed this structure becomes invalid and must be rebuilt.

Definition at line 352 of file Algorithm.h.


Constructor & Destructor Documentation

MeshCore::MeshRefFacetToFacets::MeshRefFacetToFacets ( const MeshKernel rclM  )  [inline]

Construction.

Definition at line 356 of file Algorithm.h.

MeshCore::MeshRefFacetToFacets::~MeshRefFacetToFacets ( void   )  [inline]

Destruction.

Definition at line 359 of file Algorithm.h.


Member Function Documentation

const std::set< unsigned long > & MeshRefFacetToFacets::operator[] ( unsigned long  pos  )  const

Returns a set of facets sharing one or more points with the facet with index ulFacetIndex.

Definition at line 1811 of file Algorithm.cpp.

References _map.

void MeshRefFacetToFacets::Rebuild ( void   ) 

Rebuilds up data structure.

Definition at line 1792 of file Algorithm.cpp.

References _map, _rclMesh, Mesh2Shape::faces, MeshCore::MeshKernel::GetFacets(), and insert().


Member Data Documentation

std::vector<std::set<unsigned long> > MeshCore::MeshRefFacetToFacets::_map [protected]

Definition at line 370 of file Algorithm.h.

Referenced by operator[](), and Rebuild().

The mesh kernel.

Definition at line 369 of file Algorithm.h.

Referenced by Rebuild().


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

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