31 #if defined(SurfaceMeshMeasure_RECURSES)
32 #error Recursive header files inclusion detected in SurfaceMeshMeasure.h
35 #define SurfaceMeshMeasure_RECURSES
37 #if !defined SurfaceMeshMeasure_h
39 #define SurfaceMeshMeasure_h
44 #include "DGtal/kernel/CCommutativeRing.h"
45 #include "DGtal/shapes/SurfaceMesh.h"
81 template <
typename TRealPo
int,
typename TRealVector,
typename TValue >
186 std::tuple< Vertices, WeightedEdges, WeightedFaces >
218 for (
auto&& v : wvertices ) m +=
vertex_measures[ v.first ] * v.second;
245 for (
auto&& e : wedges ) m +=
edge_measures[ e.first ] * e.second;
272 for (
auto&& v : wfaces ) m +=
face_measures[ v.first ] * v.second;
305 #undef SurfaceMeshMeasure_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
TEuclideanRing Component
Type for Vector elements.
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::uint32_t Dimension
Aim: stores an arbitrary measure on a SurfaceMesh object. The measure can be spread onto its vertices...
Value edgeMeasure(Edge e) const
std::pair< Edge, Scalar > WeightedEdge
Value vertexMeasure(Vertex v) const
const Values & kMeasures(Dimension dim) const
Values face_measures
Stores the scalar curvature measure per indexed face element.
std::pair< Vertex, Scalar > WeightedVertex
SurfaceMeshMeasure(ConstAlias< SurfaceMesh > aMesh=nullptr, Value zero_value=Value())
Values vertex_measures
Stores the scalar curvature measure per indexed vertex element.
std::vector< Face > Faces
The type that defines a range of faces.
RealVector::Component Scalar
std::vector< WeightedEdge > WeightedEdges
Value myZero
Zero value for the given type.
SurfaceMeshMeasure< RealPoint, RealVector, Value > Self
std::vector< WeightedFace > WeightedFaces
const SurfaceMesh * myMeshPtr
A pointer to the mesh over which computations are done.
Value edgeMeasure(const Edges &edges) const
Values & kMeasures(Dimension dim)
std::pair< Face, Scalar > WeightedFace
Value faceMeasure(const WeightedFaces &wfaces) const
Value measure(const RealPoint &x, Scalar r, Face f) const
Value faceMeasure(Face f) const
DGtal::SurfaceMesh< RealPoint, RealVector > SurfaceMesh
Value faceMeasure(const Faces &faces) const
std::vector< Value > Values
SurfaceMesh::Vertex Vertex
Value edgeMeasure(const WeightedEdges &wedges) const
static const Dimension dimension
std::vector< WeightedVertex > WeightedVertices
Value vertexMeasure(const WeightedVertices &wvertices) const
std::vector< Edge > Edges
The type that defines a range of edges.
Value vertexMeasure(const Vertices &vertices) const
std::vector< Vertex > Vertices
The type that defines a range of vertices.
const SurfaceMesh * meshPtr() const
Values edge_measures
Stores the scalar curvature measure per indexed edge element.
Aim: Represents an embedded mesh as faces and a list of vertices. Vertices may be shared among faces ...
std::size_t Index
The type used for numbering vertices and faces.
std::size_t Size
The type for counting elements.
std::tuple< Vertices, WeightedEdges, WeightedFaces > computeCellsInclusionsInBall(Scalar r, Index f) const
WeightedFaces computeFacesInclusionsInBall(Scalar r, Index f) const
unsigned int dim(const Vector &z)