ug4
neighborhood.h File Reference
#include <vector>
#include "grid.h"
#include "lib_grid/callbacks/basic_callbacks.h"

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Enumerations

enum  ug::NeighborhoodType {
  ug::NHT_DEFAULT = 0 , ug::NHT_VERTEX_NEIGHBORS = 1 , ug::NHT_EDGE_NEIGHBORS = 1<<1 , ug::NHT_FACE_NEIGHBORS = 1<<2 ,
  ug::NHT_VOLUME_NEIGHBORS = 1<<3 , ug::NHT_ALL
}
 Constants to specify a neighborhood. More...
 

Functions

void ug::CollectNeighborhood (std::vector< Face * > &facesOut, Grid &grid, Vertex *vrt, size_t range, bool clearContainer=true)
 Collects all neighbors in a given neighborhood of a vertex. More...
 
void ug::CollectNeighbors (std::vector< Edge * > &vNeighborsOut, Edge *e, Grid &grid, NeighborhoodType nbhType=NHT_VERTEX_NEIGHBORS)
 collects all edges that are connected to the given one. More...
 
void ug::CollectNeighbors (std::vector< Face * > &vNeighborsOut, Face *f, Grid &grid, NeighborhoodType nbhType=NHT_EDGE_NEIGHBORS)
 collects all faces that are connected to the given one. More...
 
void ug::CollectNeighbors (std::vector< Vertex * > &vNeighborsOut, Grid &grid, Vertex *vrt, uint nbhType=NHT_EDGE_NEIGHBORS, Grid::edge_traits::callback considerEdge=ConsiderAll(), Grid::face_traits::callback considerFace=ConsiderAll(), Grid::volume_traits::callback considerVol=ConsiderAll())
 Collects all vertices that are connected by elements of the specified type. More...
 
void ug::CollectNeighbors (std::vector< Volume * > &vNeighboursOut, Volume *v, Grid &grid, NeighborhoodType nbhType=NHT_FACE_NEIGHBORS)
 collects all volumes that are connected to the given one. More...