KASKADE 7 development version
Classes | Functions
Kaskade::InterpolationTools Namespace Reference

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...
 

Function Documentation

◆ computeMeanNormal()

template<bool inVertex, class NormalCollection >
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.

Definition at line 172 of file tools.hh.

◆ contains()

template<class Type >
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().

◆ getEdgeCornerIdsInEntity()

template<class Entity >
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().

◆ getGlobalEdgeCornerIds()

template<class Entity , class GridView >
std::vector< int > Kaskade::InterpolationTools::getGlobalEdgeCornerIds ( Entity const &  entity,
int  edgeId,
GridView const &  gridView 
)

Get global indices of the edges vertices.

Definition at line 715 of file tools.hh.

◆ getGlobalVertexIds()

template<class Entity , class GridView >
std::vector< int > Kaskade::InterpolationTools::getGlobalVertexIds ( Entity const &  entity,
GridView const &  gridView 
)

Get global vertex ids of the entities corners.

Definition at line 682 of file tools.hh.

◆ getMaximumValue()

template<class Type >
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().

◆ getVertexNormals()

template<class NormalCollection , class Vector >
void Kaskade::InterpolationTools::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.

Definition at line 731 of file tools.hh.