MeshLib C++ Docs
Loading...
Searching...
No Matches
MRSurroundingContour.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRVector3.h"
4#include "MREdgePaths.h"
5#include "MRExpected.h"
6#include <vector>
7
8namespace MR
9{
10
23 const Mesh & mesh,
24 std::vector<EdgeId> includeEdges,
25 const EdgeMetric & edgeMetric,
26 const Vector3f & dir
27);
28
41 const Mesh & mesh,
42 std::vector<VertId> keyVertices,
43 const EdgeMetric & edgeMetric,
44 const Vector3f & dir
45);
46
47} //namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:68
MRMESH_API Expected< EdgeLoop > surroundingContour(const Mesh &mesh, std::vector< EdgeId > includeEdges, const EdgeMetric &edgeMetric, const Vector3f &dir)
Find the best closed edge loop passing through given edges, which minimizes the sum of given edge met...
tl::expected< T, E > Expected
Definition MRExpected.h:58
std::function< float(EdgeId)> EdgeMetric
Definition MRMesh/MRMeshFwd.h:460
Definition MRMesh/MRMesh.h:23