#include <DistanceMapCalculator.hpp>
Public Member Functions | |
DistanceMapCalculator (TetrahedralMesh< SPACE_DIM, SPACE_DIM > &rMesh) | |
void | ComputeDistanceMap (std::vector< unsigned > &rOriginSurface, std::vector< double > &rNodeDistances) |
Private Member Functions | |
double | EuclideanDistanceTwoPoints (const c_vector< double, SPACE_DIM > &pointA, const c_vector< double, SPACE_DIM > &pointB) const |
double | CartToEucliDistance (c_vector< double, SPACE_DIM > &cartDistance) const |
Private Attributes | |
TetrahedralMesh< SPACE_DIM, SPACE_DIM > & | mrMesh |
unsigned | mNumNodes |
Definition at line 42 of file DistanceMapCalculator.hpp.
double DistanceMapCalculator< SPACE_DIM >::EuclideanDistanceTwoPoints | ( | const c_vector< double, SPACE_DIM > & | pointA, | |
const c_vector< double, SPACE_DIM > & | pointB | |||
) | const [inline, private] |
Computes the euclidean distance of two given points
pointA | First point | |
pointB | Second point |
Definition at line 35 of file DistanceMapCalculator.cpp.
Referenced by DistanceMapCalculator< SPACE_DIM >::ComputeDistanceMap().
double DistanceMapCalculator< SPACE_DIM >::CartToEucliDistance | ( | c_vector< double, SPACE_DIM > & | cartDistance | ) | const [inline, private] |
Given a cartesian distance, computes the associated euclidean distance
cartDistance | Cartesian distance of a given point |
Definition at line 50 of file DistanceMapCalculator.cpp.
Referenced by DistanceMapCalculator< SPACE_DIM >::ComputeDistanceMap().
void DistanceMapCalculator< SPACE_DIM >::ComputeDistanceMap | ( | std::vector< unsigned > & | rOriginSurface, | |
std::vector< double > & | rNodeDistances | |||
) | [inline] |
Generates a distance map of all the nodes of the mesh to the given surface
rOriginSurface | set of node indexes defining the surface | |
rNodeDistances | distance map computed |
Definition at line 73 of file DistanceMapCalculator.cpp.
References DistanceMapCalculator< SPACE_DIM >::CartToEucliDistance(), Node< SPACE_DIM >::ContainingElementsBegin(), Node< SPACE_DIM >::ContainingElementsEnd(), DistanceMapCalculator< SPACE_DIM >::EuclideanDistanceTwoPoints(), Node< SPACE_DIM >::GetIndex(), and Node< SPACE_DIM >::rGetLocation().