MeshLib
 
Loading...
Searching...
No Matches
MRMeshC/MRMeshMetrics.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRId.h"
5
7
13typedef double (*MRFillCombineMetric)( double, double );
14
29
31
33
35MRMESHC_API double mrCalcCombinedFillMetric( const MRMesh* mesh, const MRFaceBitSet* filledRegion, const MRFillHoleMetric* metric );
36
40
44
49
56
61
65
struct MRVertId MRVertId
vertex index
#define MR_EXTERN_C_BEGIN
Definition MRMeshC/MRMeshFwd.h:26
#define MR_EXTERN_C_END
Definition MRMeshC/MRMeshFwd.h:27
struct MRMesh MRMesh
Definition MRMeshC/MRMeshFwd.h:42
MRBitSet MRFaceBitSet
Definition MRMeshC/MRMeshFwd.h:36
#define MRMESHC_API
Definition MRMeshC/MRMeshFwd.h:19
MRMESHC_API MRFillHoleMetric * mrGetUniversalMetric(const MRMesh *mesh)
MRMESHC_API MRFillHoleMetric * mrGetPlaneFillMetric(const MRMesh *mesh, MREdgeId e)
MRMESHC_API MRFillHoleMetric * mrGetComplexFillMetric(const MRMesh *mesh, MREdgeId e)
MRMESHC_API double mrCalcCombinedFillMetric(const MRMesh *mesh, const MRFaceBitSet *filledRegion, const MRFillHoleMetric *metric)
Computes combined metric after filling a hole.
MRMESHC_API MRFillHoleMetric * mrGetMinAreaMetric(const MRMesh *mesh)
MRMESHC_API void mrFillHoleMetricFree(MRFillHoleMetric *metric)
MRMESHC_API MRFillHoleMetric * mrGetCircumscribedMetric(const MRMesh *mesh)
double(* MRFillCombineMetric)(double, double)
is called to combine metrics from different candidates, if it is not set it just summarizes input
Definition MRMeshC/MRMeshMetrics.h:13
MRMESHC_API MRFillHoleMetric * mrGetPlaneNormalizedFillMetric(const MRMesh *mesh, MREdgeId e)
double(* MRFillEdgeMetric)(MRVertId, MRVertId, MRVertId, MRVertId)
is called for each edge, if it is set
Definition MRMeshC/MRMeshMetrics.h:11
MR_EXTERN_C_BEGIN typedef double(* MRFillTriangleMetric)(MRVertId, MRVertId, MRVertId)
is called for each triangle, if it is set
Definition MRMeshC/MRMeshMetrics.h:9
MRMESHC_API MRFillHoleMetric * mrFillHoleMetricNew(MRFillTriangleMetric triangleMetric, MRFillEdgeMetric edgeMetric, MRFillCombineMetric combineMetric)
edge index
Definition MRMeshC/MRId.h:8
Holds metrics for mrFillHole and mrBuildCylinderBetweenTwoHoles triangulation .