MeshCore::MeshRefPointToPoints Class Reference

The MeshRefPointToPoints builds up a structure to have access to all neighbour points of a point. More...

#include <Algorithm.h>

List of all members.

Public Member Functions

float GetAverageEdgeLength (unsigned long) const
Base::Vector3f GetNormal (unsigned long) const
 MeshRefPointToPoints (const MeshKernel &rclM)
 Construction.
const std::set< unsigned long > & operator[] (unsigned long) const
void Rebuild (void)
 Rebuilds up data structure.
 ~MeshRefPointToPoints (void)
 Destruction.

Protected Attributes

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

Detailed Description

The MeshRefPointToPoints builds up a structure to have access to all neighbour points of a point.

Two points are neighbours if there is an edge indexing both points.

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

Definition at line 379 of file Algorithm.h.


Constructor & Destructor Documentation

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

Construction.

Definition at line 383 of file Algorithm.h.

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

Destruction.

Definition at line 386 of file Algorithm.h.


Member Function Documentation

float MeshRefPointToPoints::GetAverageEdgeLength ( unsigned long  index  )  const
Base::Vector3f MeshRefPointToPoints::GetNormal ( unsigned long  pos  )  const
const std::set< unsigned long > & MeshRefPointToPoints::operator[] ( unsigned long  pos  )  const

Definition at line 1872 of file Algorithm.cpp.

References _map.

void MeshRefPointToPoints::Rebuild ( void   ) 

Rebuilds up data structure.

Definition at line 1818 of file Algorithm.cpp.

References _map, _rclMesh, MeshCore::MeshKernel::GetFacets(), and MeshCore::MeshKernel::GetPoints().


Member Data Documentation

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

Definition at line 397 of file Algorithm.h.

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

The mesh kernel.

Definition at line 396 of file Algorithm.h.

Referenced by GetAverageEdgeLength(), GetNormal(), and 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