MeshLib C++ Docs
Loading...
Searching...
No Matches
MREdgeMetric.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRPch/MRBindingMacros.h"
5#include <functional>
6
7namespace MR
8{
9
12
15
18[[nodiscard]] MRMESH_API EdgeMetric edgeLengthMetric( const Mesh & mesh );
19[[nodiscard]] MRMESH_API EdgeMetric edgeLengthMetric( const MeshTopology& topology, const VertCoords& points );
20
25[[nodiscard]] MRMESH_API EdgeMetric discreteAbsMeanCurvatureMetric( const MeshTopology& topology, const VertCoords& points );
26
31[[nodiscard]] MRMESH_API EdgeMetric discreteMinusAbsMeanCurvatureMetric( const MeshTopology& topology, const VertCoords& points );
32
37[[nodiscard]] MRMESH_API EdgeMetric edgeCurvMetric( const Mesh & mesh, float angleSinFactor = 2, float angleSinForBoundary = 0 );
38[[nodiscard]] MRMESH_API EdgeMetric edgeCurvMetric( const MeshTopology& topology, const VertCoords& points, float angleSinFactor = 2, float angleSinForBoundary = 0 );
39
42[[nodiscard]] MRMESH_API EdgeMetric edgeTableSymMetric( const MeshTopology & topology, const EdgeMetric & metric );
43
44[[deprecated]] MR_BIND_IGNORE inline EdgeMetric edgeTableMetric( const MeshTopology & topology, const EdgeMetric & metric )
45 { return edgeTableSymMetric( topology, metric ); }
46
48
49} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:80
Definition MRMesh/MRMeshTopology.h:19
MRMESH_API EdgeMetric edgeTableSymMetric(const MeshTopology &topology, const EdgeMetric &metric)
MRMESH_API EdgeMetric edgeCurvMetric(const Mesh &mesh, float angleSinFactor=2, float angleSinForBoundary=0)
MR_BIND_IGNORE EdgeMetric edgeTableMetric(const MeshTopology &topology, const EdgeMetric &metric)
Definition MREdgeMetric.h:44
MRMESH_API EdgeMetric discreteMinusAbsMeanCurvatureMetric(const Mesh &mesh)
MRMESH_API EdgeMetric edgeLengthMetric(const Mesh &mesh)
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:570
std::array< Vector3f, 3 > MR_BIND_IGNORE
Definition MRMeshBuilderTypes.h:10
Definition MRMesh/MRMesh.h:23