A collection of functions to compute topological properties.
More...
Functions
-
template<int Dims> index_t NumberOfEdges (const MultiIndex< Dims > &NumberOfVertices) throw ()
- Compute the number of edges on a regular grid that consists of the given number of vertices.
- template<int Dims> int EdgeOrientation (index_t EdgeIndex, const MultiIndex< Dims > &NumberOfVertices) throw (int)
- Compute the orientation of a given edge index in a regular grid, given the number of vertices in the grid.
- template<int Dims> void ComputeFirstEdgeVertex (MultiIndex< Dims > &FirstVertex, int &Orientation, index_t EdgeIndex, const MultiIndex< Dims > &NumberOfVertices) throw (int)
- Given a linear index of an edge (the edge ID) and the multidimensional number of vertices, compute the multidimensional indices of the corresponding vertice of the edge, and the orientation of this edge.
- template<int Dims> MultiIndex< Dims > ComputeSecondEdgeVertex (const MultiIndex< Dims > &Vertex, int Orientation) throw ()
- Given the vertex of an edge and an orientation (0,1,2), return the second vertex of the given edge.
- template<int Dims> std::pair< MultiIndex< Dims >
, MultiIndex< Dims > > ComputeEdgeVertices (index_t EdgeIndex, const MultiIndex< Dims > &NumberOfVertices) throw (int)
- Compute the both vertices that correspond to a certain edge, where the edge is linearly numbered over all edges of a multidimensional regular grid.
- template<int Dims> index_t ComputeEdgeIDfromVertexAndOrientation (const MultiIndex< Dims > &Vertex, int Orientation, const MultiIndex< Dims > &NumberOfVertices) throw (int)
- Given a vertex and an orientation (i.e.
Detailed Description
A collection of functions to compute topological properties.