MeshLib Documentation
Loading...
Searching...
No Matches
MRFaceDistance.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include <optional>
5
6namespace MR
7{
8
24
29[[nodiscard]] MRMESH_API std::optional<FaceScalars> calcFaceDistances( const MeshTopology & topology, const EdgeMetric & metric, const FaceBitSet & starts,
30 const FaceDistancesSettings & settings = {} );
31
32} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRMesh/MRMeshTopology.h:18
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
Definition MRCameraOrientationPlugin.h:8
std::function< float(EdgeId)> EdgeMetric
Definition MRMesh/MRMeshFwd.h:438
MRMESH_API std::optional< FaceScalars > calcFaceDistances(const MeshTopology &topology, const EdgeMetric &metric, const FaceBitSet &starts, const FaceDistancesSettings &settings={})
Definition MRFaceDistance.h:10
float * maxDist
optional output of the maximal distance to the most distant face
Definition MRFaceDistance.h:19
OutputFaceValues out
Definition MRFaceDistance.h:16
ProgressCallback progress
for progress reporting and cancellation
Definition MRFaceDistance.h:22
OutputFaceValues
Definition MRFaceDistance.h:12
@ SeqOrder
each face will get its sequential order (1,2,...) from start in the result
@ Distances
each face will get its distance from start in the result