MeshLib C++ Docs
Loading...
Searching...
No Matches
MRSegmentMesh.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRExpected.h"
5#include "MRFaceFace.h"
6
7namespace MR
8{
11
12
15using GroupOrder = std::vector<FaceFace>;
16
24 const EdgeMetric& curvMetric,
25 const ProgressCallback& progress = {} );
26
29[[nodiscard]] MRMESH_API UndirectedEdgeBitSet findSegmentBoundaries( const MeshTopology& topology,
30 const GroupOrder& groupOrder, int numSegments,
31 FaceColors* outFaceColors = nullptr );
32
33}
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRMeshTopology.h:23
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:758
std::vector< FaceFace > GroupOrder
Definition MRSegmentMesh.h:15
tl::expected< T, E > Expected
Definition MRExpected.h:31
std::function< float(EdgeId)> EdgeMetric
Definition MRMeshFwd.h:588
Expected< GroupOrder > segmentMesh(const Mesh &mesh, const EdgeMetric &curvMetric, const ProgressCallback &progress={})
UndirectedEdgeBitSet findSegmentBoundaries(const MeshTopology &topology, const GroupOrder &groupOrder, int numSegments, FaceColors *outFaceColors=nullptr)
optional output face coloring where all faces of one segment share the same color
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh.h:23