MeshLib Documentation
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
20 const Mesh & mesh,
21 std::vector<EdgeId> includeEdges,
22 const EdgeMetric & edgeMetric,
23 const Vector3f & dir
24);
25
35 const Mesh & mesh,
36 std::vector<VertId> keyVertices,
37 const EdgeMetric & edgeMetric,
38 const Vector3f & dir
39);
40
41} //namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
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...
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:58
std::function< float(EdgeId)> EdgeMetric
Definition MRMesh/MRMeshFwd.h:438
Definition MRMesh/MRMesh.h:23