MeshLib
 
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
represents a 3-dimentional float-typed vector
Definition MRDotNet/MRVector3.h:8
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:7
tl::expected< T, E > Expected
Definition MRExpected.h:49
std::function< float(EdgeId)> EdgeMetric
Definition MRMesh/MRMeshFwd.h:428
Definition MRMesh/MRMesh.h:23