Geometric functions. More...
#include "SimpMeshRed.h"
#include "topology.h"
#include "../simplex/geometry.h"
#include "../../../numerical/constants.h"
#include "geometry.ipp"
Go to the source code of this file.
Classes | |
class | IsNotSharpAngle< SMR > |
Functor that returns true iff the boundary angle is not sharp. More... | |
Functions | |
template<class SMR > | |
BEGIN_NAMESPACE_GEOM SMR::Number | computeIncidentCellsAngle (typename SMR::NodeConstIterator node) |
Return the solid angle accumulated from the incident cells. | |
template<class SMR > | |
SMR::Number | computeDihedralAngle (typename SMR::ConstEdge edge) |
Compute the dihedral angle at the specified edge. | |
template<class SMR > | |
SMR::Number | computeCosineAngle (typename SMR::FaceConstIterator face) |
Return the cosine of the interior angle at the specified 1-face. | |
template<class SMR > | |
void | computeNodeNormal (typename SMR::NodeConstIterator node, typename SMR::Vertex *normal) |
Compute the normal to the surface. | |
template<class SMR > | |
SMR::Vertex | computeNodeNormal (typename SMR::NodeConstIterator node) |
Return the normal to the surface. | |
template<class SMR > | |
void | computeCellNormal (typename SMR::CellConstIterator cell, typename SMR::Vertex *normal) |
Compute the cell normal. | |
template<class SMR > | |
SMR::Vertex | computeCellNormal (typename SMR::CellConstIterator cell) |
Return the normal to the surface. | |
template<class SMR > | |
void | computeFaceNormal (typename SMR::CellConstIterator cell, int i, typename SMR::Vertex *x) |
Compute the face normal. | |
template<typename T , template< class > class Node, template< class > class Cell, template< class, class > class Cont, typename OutputIterator > | |
void | projectAndGetSimplices (const SimpMeshRed< 2, 1, T, Node, Cell, Cont > &mesh, OutputIterator simplices) |
Project the line segments to 1-D and collect them. | |
template<typename T , template< class > class Node, template< class > class Cell, template< class, class > class Cont, typename OutputIterator > | |
void | projectAndGetSimplices (const SimpMeshRed< 3, 2, T, Node, Cell, Cont > &mesh, OutputIterator simplices) |
Project the triangle simplices to 2-D and collect them. |
Geometric functions.
SMR::Vertex computeCellNormal | ( | typename SMR::CellConstIterator | cell | ) | [inline] |
Return the normal to the surface.
void computeCellNormal | ( | typename SMR::CellConstIterator | cell, | |
typename SMR::Vertex * | normal | |||
) | [inline] |
Compute the cell normal.
SMR::Number computeCosineAngle | ( | typename SMR::FaceConstIterator | face | ) | [inline] |
Return the cosine of the interior angle at the specified 1-face.
SMR::Number computeDihedralAngle | ( | typename SMR::ConstEdge | edge | ) | [inline] |
Compute the dihedral angle at the specified edge.
The dihedral angle is accumulated from the incident cells.
void computeFaceNormal | ( | typename SMR::CellConstIterator | cell, | |
int | i, | |||
typename SMR::Vertex * | x | |||
) | [inline] |
Compute the face normal.
BEGIN_NAMESPACE_GEOM SMR::Number computeIncidentCellsAngle | ( | typename SMR::NodeConstIterator | node | ) | [inline] |
Return the solid angle accumulated from the incident cells.
This function does not check if the node is in the interior or on the boundary. For the sake of efficiency, only call this function for boundary nodes.
SMR::Vertex computeNodeNormal | ( | typename SMR::NodeConstIterator | node | ) | [inline] |
Return the normal to the surface.
node | Must be a boundary node. |
void computeNodeNormal | ( | typename SMR::NodeConstIterator | node, | |
typename SMR::Vertex * | normal | |||
) | [inline] |
Compute the normal to the surface.
node | Must be a boundary node. | |
normal | Set to the node normal. |