ug4
vertex_util_impl.hpp File Reference
#include "vertex_util.h"
#include "edge_util.h"
#include "face_util.h"
#include "../trees/kd_tree_static.h"
#include "misc_util.h"

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Functions

template<class TVrtIter , class TAPosition >
TAPosition::ValueType ug::CalculateBarycenter (TVrtIter vrtsBegin, TVrtIter vrtsEnd, Grid::VertexAttachmentAccessor< TAPosition > &aaPos)
 calculates the barycenter of a set of vertices More...
 
template<class TAAPosVRT >
void ug::CalculateBoundaryVertexNormal2D (typename TAAPosVRT::ValueType &nOut, Grid &grid, Vertex *vrt, TAAPosVRT &aaPos)
 calculates the normal of a boundary vertex using associated faces More...
 
template<class TAAPosVRT >
void ug::CalculateBoundaryVertexNormal3D (vector3 &nOut, Grid &grid, Vertex *vrt, TAAPosVRT &aaPos)
 calculates the normal of a boundary vertex using associated volumes More...
 
template<class TVrtIter , class TAPosition >
void ug::CalculateBoundingBox (typename TAPosition::ValueType &vMinOut, typename TAPosition::ValueType &vMaxOut, TVrtIter vrtsBegin, TVrtIter vrtsEnd, Grid::AttachmentAccessor< Vertex, TAPosition > &aaPos)
 calculates the BoundingBox More...
 
template<class TVertexPositionAttachmentAccessor >
TVertexPositionAttachmentAccessor::ValueType ug::CalculateCenter (const Vertex *v, TVertexPositionAttachmentAccessor &aaPosVRT)
 returns the position of the vertex. More...
 
template<class TVrtIter , class TAPosition >
TAPosition::ValueType ug::CalculateCenter (TVrtIter vrtsBegin, TVrtIter vrtsEnd, Grid::AttachmentAccessor< Vertex, TAPosition > &aaPos)
 calculates the center of a set of vertices. More...
 
template<class TAAPosVRT >
void ug::CalculateVertexNormal (vector3 &nOut, Grid &grid, Vertex *vrt, TAAPosVRT &aaPos)
 calculates the normal of a vertex using associated faces More...
 
template<class vector_t , class TAAPos >
UG_API bool ug::ContainsPoint (const Vertex *v, const vector_t &p, TAAPos aaPos)
 Returns true if the given point lies on the given vertex. More...
 
template<size_t dim>
int ug::FindVertexByCoordinate (const MathVector< dim > &coord, size_t ncoords, const MathVector< dim > vCoords[])
 returns (non-unique?) index of closest vertex More...
 
template<class TVrtIterator >
Vertex * ug::MergeMultipleVertices (Grid &grid, TVrtIterator vrtsBegin, TVrtIterator vrtsEnd)
 Merges all vertices between the given iterators into a single vertex. More...
 
template<class TIterator , class TAAPos >
void ug::MoveVertices (TIterator vrtsBegin, TIterator vrtsEnd, TAAPos aaPos, const typename TAAPos::ValueType &offset)
 moves vertices by the specified offset More...
 
template<int dim, class TVrtIterator >
void ug::RemoveDoubles (Grid &grid, const TVrtIterator &iterBegin, const TVrtIterator &iterEnd, Attachment< MathVector< dim > > &aPos, number threshold)
 merges all vertices that are closer to each other than the specified threshold. More...
 
template<int dim, class TVrtIterator , class TAAPos >
void ug::RemoveDoubles (Grid &grid, const TVrtIterator &iterBegin, const TVrtIterator &iterEnd, TAAPos aaPos, number threshold)
 
template<class TAAPos >
void ug::TransformVertex (Vertex *vrt, matrix33 &m, TAAPos &aaPos)
 transforms a vertex by a given matrix More...
 
template<class TIterator , class TAAPos >
void ug::TransformVertices (TIterator vrtsBegin, TIterator vrtsEnd, matrix33 &m, TAAPos &aaPos)
 transforms all given vertices by a given matrix More...
 
template<class TAAPos >
number ug::VertexDistance (Vertex *v0, Vertex *v1, TAAPos &aaPos)
 Returns the distance between two vertices. More...
 
template<class TAAPos >
number ug::VertexDistanceSq (Vertex *v0, Vertex *v1, TAAPos &aaPos)
 Returns the squared distance between two vertices. More...
 
template<class TAAPosVRT , class TAAWeightVRT >
UG_API TAAPosVRT::ValueType ug::CalculateCenter (const Vertex *v, TAAPosVRT &aaPos, TAAWeightVRT &aaWeight)
 returns the position of the vertex. More...