MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMeshTotalAngle.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include <cfloat>
5
6namespace MR
7{
10
11
13{
15 float maxAngleChange = FLT_MAX;
16
19 float criticalTriAspectRatio = FLT_MAX;
20
25 float factorDelone = 0.1f;
26
28 const FaceBitSet* region = nullptr;
29
31 const UndirectedEdgeBitSet* notFlippable = nullptr;
32
34 const VertBitSet* vertRegion = nullptr;
35};
36
40MRMESH_API int reduceTotalAngle( MeshTopology& topology, const VertCoords& points, int numIters,
41 const ReduceTotalAngleParams& params = {}, const ProgressCallback& progressCallback = {} );
42MRMESH_API int reduceTotalAngleInMesh( Mesh& mesh, int numIters,
43 const ReduceTotalAngleParams& params = {}, const ProgressCallback& progressCallback = {} );
44
45}
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRMeshTopology.h:23
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:758
float factorDelone
Definition MRMeshTotalAngle.h:25
int reduceTotalAngle(MeshTopology &topology, const VertCoords &points, int numIters, const ReduceTotalAngleParams &params={}, const ProgressCallback &progressCallback={})
int reduceTotalAngleInMesh(Mesh &mesh, int numIters, const ReduceTotalAngleParams &params={}, const ProgressCallback &progressCallback={})
const VertBitSet * vertRegion
Only edges with origin or destination in this set before or after flip can be flipped.
Definition MRMeshTotalAngle.h:34
float maxAngleChange
Maximal allowed dihedral angle change (in radians) over the flipped edge.
Definition MRMeshTotalAngle.h:15
const UndirectedEdgeBitSet * notFlippable
Edges specified by this bit-set will never be flipped.
Definition MRMeshTotalAngle.h:31
const FaceBitSet * region
Only edges with left and right faces in this set can be flipped.
Definition MRMeshTotalAngle.h:28
float criticalTriAspectRatio
Definition MRMeshTotalAngle.h:19
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh.h:23
Definition MRMeshTotalAngle.h:13