MeshLib C++ Docs
Loading...
Searching...
No Matches
MRSurroundingContour.h File Reference
#include "MRVector3.h"
#include "MREdgePaths.h"
#include "MRExpected.h"
#include <vector>

Go to the source code of this file.

Namespaces

namespace  MR
 

Functions

MRMESH_API Expected< EdgeLoopMR::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 metric. The algorithm assumes that input edges can be projected on the plane orthogonal to given direction, then the center point of all input edges is found, and each segment of the searched loop is within infinite pie sector with this center and the borders passing via two sorted input edges.
 
MRMESH_API Expected< EdgeLoopMR::surroundingContour (const Mesh &mesh, std::vector< VertId > keyVertices, const EdgeMetric &edgeMetric, const Vector3f &dir)
 Find the best closed edge loop passing through given vertices, which minimizes the sum of given edge metric. The algorithm assumes that input vertices can be projected on the plane orthogonal to given direction, then the center point of all input vertices is found, and each segment of the searched loop is within infinite pie sector with this center and the borders passing via two sorted input vertices.