ug4
face_util_impl.hpp File Reference
#include "face_util.h"

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Functions

template<class TIterator >
number ug::AreaFaceQuality (TIterator facesBegin, TIterator facesEnd, Grid::VertexAttachmentAccessor< APosition > &aaPos)
 returns a value between 0 (bad) and 1 (good) that describes the quality of the area. More...
 
template<class TAAPosVRT , class TAAWeightVRT >
UG_API TAAPosVRT::ValueType ug::CalculateCenter (const FaceVertices *f, TAAPosVRT &aaPos, TAAWeightVRT &aaWeight)
 returns the weighted center of the vertices of the given face More...
 
template<class TVertexPositionAttachmentAccessor >
TVertexPositionAttachmentAccessor::ValueType ug::CalculateCenter (const FaceVertices *f, TVertexPositionAttachmentAccessor &aaPosVRT)
 calculates the center of a face. More...
 
template<class vector_t , class TAAPos >
bool ug::ContainsPoint (const FaceVertices *f, const vector_t &p, TAAPos aaPos)
 Returns true if the given point lies inside the given face. More...
 
template<class TAAPosVRT >
number ug::FaceArea (FaceVertices *f, TAAPosVRT &aaPos)
 Returns the area of a convex face. More...
 
template<class TIterator , class TAAPosVRT >
number ug::FaceArea (TIterator facesBegin, TIterator facesEnd, TAAPosVRT &aaPos)
 Returns the area sum of convex faces. More...
 
template<class TIterator , class TAAPosVRT >
Face * ug::FindSmallestFace (TIterator facesBegin, TIterator facesEnd, TAAPosVRT &aaPos)
 Returns the face with the smallest area. More...
 
template<class TAAPosVRT >
bool ug::IsDegenerated (Face *f, TAAPosVRT &aaPos, number threshold)
 returns true if the given face is degenerated. More...
 
template<class TAAPosVRT >
int ug::PointFaceTest (vector3 &v, Face *f, TAAPosVRT &aaPos)
 
template<class TTriangleIterator , class TAAPosVRT >
bool ug::ProjectPointToSurface (vector3 &vOut, const vector3 &v, const vector3 &n, TTriangleIterator trisBegin, TTriangleIterator trisEnd, TAAPosVRT &aaPos, bool compareNormals)
 
UG_API void ug::Triangulate (Grid &grid, Grid::VertexAttachmentAccessor< APosition > *paaPos=NULL)