MeshLib Documentation
Loading...
Searching...
No Matches
MREdgeMetric.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include <functional>
5
6namespace MR
7{
8
11
14
17[[nodiscard]] MRMESH_API EdgeMetric edgeLengthMetric( const Mesh & mesh );
18
23
28
33[[nodiscard]] MRMESH_API EdgeMetric edgeCurvMetric( const Mesh & mesh, float angleSinFactor = 2, float angleSinForBoundary = 0 );
34
37[[nodiscard]] MRMESH_API EdgeMetric edgeTableSymMetric( const MeshTopology & topology, const EdgeMetric & metric );
38
39[[deprecated]] inline EdgeMetric edgeTableMetric( const MeshTopology & topology, const EdgeMetric & metric )
40 { return edgeTableSymMetric( topology, metric ); }
41
43
44} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRMesh/MRMeshTopology.h:18
MRMESH_API EdgeMetric edgeTableSymMetric(const MeshTopology &topology, const EdgeMetric &metric)
MRMESH_API EdgeMetric edgeCurvMetric(const Mesh &mesh, float angleSinFactor=2, float angleSinForBoundary=0)
MRMESH_API EdgeMetric discreteMinusAbsMeanCurvatureMetric(const Mesh &mesh)
MRMESH_API EdgeMetric edgeLengthMetric(const Mesh &mesh)
EdgeMetric edgeTableMetric(const MeshTopology &topology, const EdgeMetric &metric)
Definition MREdgeMetric.h:39
MRMESH_API EdgeMetric identityMetric()
metric returning 1 for every edge
MRMESH_API EdgeMetric discreteAbsMeanCurvatureMetric(const Mesh &mesh)
Definition MRCameraOrientationPlugin.h:8
std::function< float(EdgeId)> EdgeMetric
Definition MRMesh/MRMeshFwd.h:438
Definition MRMesh/MRMesh.h:23