KASKADE 7 development version
|
Classes | |
struct | NormalCollection |
Container storing normals together with some additional information. More... | |
struct | NormalContainer |
Simple data container holding only vertex/edge normals and a threshold value for corner detection. More... | |
struct | NormalContainer< Scalar, 2 > |
2D specialization. More... | |
struct | NormalContainer< Scalar, 3 > |
3D specilization More... | |
Functions | |
template<class Type > | |
Type | getMaximumValue (std::vector< Type > const &vec) |
Get maximum value in a vector. More... | |
template<class Type > | |
bool | contains (Type const entry, std::vector< Type > const &vec) |
Check if entry is contained in vec. More... | |
template<bool inVertex, class NormalCollection > | |
void | computeMeanNormal (NormalCollection &collection) |
template<class Entity , class GridView > | |
std::vector< int > | getGlobalVertexIds (Entity const &entity, GridView const &gridView) |
Get global vertex ids of the entities corners. More... | |
template<class Entity > | |
std::vector< int > | getEdgeCornerIdsInEntity (Entity const &entity, int edgeId) |
Get local coordinates of the edges vertices in the codim<0> entity. More... | |
template<class Entity , class GridView > | |
std::vector< int > | getGlobalEdgeCornerIds (Entity const &entity, int edgeId, GridView const &gridView) |
Get global indices of the edges vertices. More... | |
template<class NormalCollection , class Vector > | |
void | getVertexNormals (std::vector< int > const &vid, NormalCollection const &vertexNormals, std::vector< Vector > &localNormals, typename Vector::field_type const tissueId) |
Get the normals assoicated to the global vertex indices in vid. More... | |
void Kaskade::InterpolationTools::computeMeanNormal | ( | NormalCollection & | collection | ) |
Using the data of NormalCollection this function calculates a mean normal for each material Ignores entities where more than 2 materials meet and which have been marked as irrelevant.
bool Kaskade::InterpolationTools::contains | ( | Type const | entry, |
std::vector< Type > const & | vec | ||
) |
Check if entry is contained in vec.
Definition at line 82 of file tools.hh.
Referenced by computeMeanNormal(), and Kaskade::Policy::SpecifyInnerBoundary< IdVector, skipSpecifiedIds >::ignoreInnerBoundary().
std::vector< int > Kaskade::InterpolationTools::getEdgeCornerIdsInEntity | ( | Entity const & | entity, |
int | edgeId | ||
) |
Get local coordinates of the edges vertices in the codim<0> entity.
Definition at line 697 of file tools.hh.
Referenced by getGlobalEdgeCornerIds().
std::vector< int > Kaskade::InterpolationTools::getGlobalEdgeCornerIds | ( | Entity const & | entity, |
int | edgeId, | ||
GridView const & | gridView | ||
) |
std::vector< int > Kaskade::InterpolationTools::getGlobalVertexIds | ( | Entity const & | entity, |
GridView const & | gridView | ||
) |
Type Kaskade::InterpolationTools::getMaximumValue | ( | std::vector< Type > const & | vec | ) |
Get maximum value in a vector.
Definition at line 71 of file tools.hh.
Referenced by computeMeanNormal().
void Kaskade::InterpolationTools::getVertexNormals | ( | std::vector< int > const & | vid, |
NormalCollection const & | vertexNormals, | ||
std::vector< Vector > & | localNormals, | ||
typename Vector::field_type const | tissueId | ||
) |