ug4
grid_util.cpp File Reference
#include "grid_util.h"
#include "grid.h"
#include <iostream>

Namespaces

 ug
 the ug namespace
 

Functions

void ug::CollectEdges (vector< Edge * > &vEdgesOut, Grid &grid, Edge *e, bool clearContainer)
 Collects all edges. (Returns the edge itself) More...
 
void ug::CollectEdges (vector< Edge * > &vEdgesOut, Grid &grid, Face *f, bool clearContainer)
 Collects all edges which exist in the given grid and which are part of the given face. More...
 
void ug::CollectEdges (vector< Edge * > &vEdgesOut, Grid &grid, Volume *v, bool clearContainer)
 Collects all edges that exist in the given grid are part of the given volume. More...
 
void ug::CollectEdgesSorted (vector< Edge * > &vEdgesOut, Grid &grid, Edge *e, bool clearContainer)
 Collects all edges. (Returns the edge itself) More...
 
void ug::CollectEdgesSorted (vector< Edge * > &vEdgesOut, Grid &grid, Face *f, bool clearContainer)
 Collects all edges which exist in the given grid and which are part of the given face in the order defined by the reference elements. More...
 
void ug::CollectEdgesSorted (vector< Edge * > &vEdgesOut, Grid &grid, Vertex *v, bool clearContainer)
 Collects all edges of a vertex, thus, none. More...
 
void ug::CollectEdgesSorted (vector< Edge * > &vEdgesOut, Grid &grid, Volume *v, bool clearContainer)
 Collects all edges that exist in the given grid are part of the given volume in the order defined by the reference elements. More...
 
void ug::CollectFaces (std::vector< Face * > &vFacesOut, Grid &grid, Vertex *vrt, bool clearContainer)
 Collects all faces that exist in the given grid which contain the given vertex. More...
 
void ug::CollectFaces (vector< Face * > &vFacesOut, Grid &grid, Face *e, bool clearContainer)
 Collects all faces. (Returns the face itself) More...
 
void ug::CollectFaces (vector< Face * > &vFacesOut, Grid &grid, Volume *v, bool clearContainer)
 Collects all faces that exist in the given grid are part of the given volume. More...
 
void ug::CollectFacesSorted (vector< Face * > &vFacesOut, Grid &grid, Edge *e, bool clearContainer)
 Collects all faces and returns them in the order prescribed by the reference element. More...
 
void ug::CollectFacesSorted (vector< Face * > &vFacesOut, Grid &grid, Face *f, bool clearContainer)
 Collects all faces and returns them in the order prescribed by the reference element. More...
 
void ug::CollectFacesSorted (vector< Face * > &vFacesOut, Grid &grid, Vertex *v, bool clearContainer)
 Collects all Faces of a Vertex, thus, none. More...
 
void ug::CollectFacesSorted (vector< Face * > &vFacesOut, Grid &grid, Volume *v, bool clearContainer)
 Collects all faces and returns them in the order prescribed by the reference element. More...
 
void ug::CollectVolumes (std::vector< Volume * > &vVolumesOut, Grid &grid, Vertex *vrt, bool clearContainer=true)
 Collects all volumes that exist in the given grid which contain the given vertex. More...
 
void ug::CollectVolumes (vector< Volume * > &vVolumesOut, Grid &grid, Volume *v, bool clearContainer)
 Collects all volumes. (Returns the volume itself) More...
 
bool ug::CompareVertices (const FaceVertices *fv1, const FaceVertices *fv2)
 Checks whether fv1 and fv2 contain the same vertices. More...
 
bool ug::CompareVertices (const VolumeVertices *vv1, const VolumeVertices *vv2)
 Checks whether vv1 and vv2 contain the same vertices. More...
 
bool ug::FaceContains (Face *f, EdgeVertices *ev)
 returns true if the given face contains the two given vertices More...
 
bool ug::FaceContains (FaceVertices *f, Vertex *v)
 returns true if the given face contains the given vertex More...
 
bool ug::VertexGroupsMatch (const IVertexGroup *elem, const IVertexGroup &desc)
 Checks whether two vertex groups contain the same vertices. More...
 
bool ug::VertexGroupsMatch (const Vertex *elem, const IVertexGroup &desc)
 specialization of VertexGroupsMatch for single Vertex More...
 
bool ug::VolumeContains (Volume *v, EdgeVertices *ev)
 returns true if the given volume contains the given edge More...
 
bool ug::VolumeContains (Volume *v, FaceVertices *fv)
 returns true if the given volume contains the given face More...
 
bool ug::VolumeContains (VolumeVertices *v, Vertex *vrt)
 returns true if the given volume contains the given vertex More...
 
void ug::CollectVertices (std::vector< Vertex * > &vVertexOut, Grid &grid, Vertex *v, bool clearContainer)
 Collects all vertices. More...
 
void ug::CollectVertices (std::vector< Vertex * > &vVertexOut, Grid &grid, Edge *e, bool clearContainer)
 Collects all vertices. More...
 
void ug::CollectVertices (std::vector< Vertex * > &vVertexOut, Grid &grid, Face *f, bool clearContainer)
 Collects all vertices. More...
 
void ug::CollectVertices (std::vector< Vertex * > &vVertexOut, Grid &grid, Volume *v, bool clearContainer)
 Collects all vertices. More...
 
void ug::CollectEdges (std::vector< Edge * > &vEdgesOut, Grid &grid, Vertex *vrt, bool clearContainer)
 Collects all edges which exist in the given grid and which are part of the given vertex. More...
 
void ug::CollectFaces (std::vector< Face * > &vFacesOut, Grid &grid, Edge *e, bool clearContainer)
 Collects all faces that exist in the given grid which contain the given edge. More...
 
void ug::CollectVolumes (std::vector< Volume * > &vVolumesOut, Grid &grid, Edge *e, bool clearContainer)
 Collects all volumes that exist in the given grid which contain the given edge. More...
 
void ug::CollectVolumes (std::vector< Volume * > &vVolumesOut, Grid &grid, Face *f, bool clearContainer, bool ignoreAssociatedVolumes)
 Collects all volumes that exist in the given grid which contain the given face. More...
 
void ug::CollectVolumes (std::vector< Volume * > &vVolumesOut, Grid &grid, FaceDescriptor &fd, bool clearContainer)
 Collects all volumes that exist in the given grid which contain the given face. More...