MeshLib C++ Docs
Loading...
Searching...
No Matches
MREnums.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4
5namespace MR
6{
7
8enum class FilterType : char
9{
10 Linear,
11 Discrete
12};
13
14enum class WrapType : char
15{
16 Repeat,
17 Mirror,
18 Clamp
19};
20
22enum class Reorder : char
23{
24 None,
25 Lexicographically,
26 AABBTree
27};
28
30enum class VertexMass
31{
33 Unit = 0,
34
36 NeiArea
37};
38
40enum class EdgeWeights
41{
43 Unit = 0,
44
46 Cotan
47
49 // CotanWithAreaEqWeight => use EdgeWeights::Cotan and VertexMass::NeiArea instead
50};
51
53enum class Processing : bool
54{
55 Continue,
56 Stop
57};
58
60enum class OrientNormals
61{
62 TowardOrigin,
63 AwayFromOrigin,
64 Smart
65};
66
67enum class OffsetMode : int
68{
69 Smooth,
70 Standard,
71 Sharpening
72};
73
76enum class ColoringType
77{
78 SolidColor,
79 PrimitivesColorMap,
80 FacesColorMap = PrimitivesColorMap,
81 LinesColorMap = PrimitivesColorMap,
82 VertsColorMap
83};
84
86[[nodiscard]] MRMESH_API const char * asString( ColoringType ct );
87
88enum class UseAABBTree : char
89{
90 No, // AABB-tree of the mesh will not be used, even if it is available
91 Yes, // AABB-tree of the mesh will be used even if it has to be constructed
92 YesIfAlreadyConstructed, // AABB-tree of the mesh will be used if it was previously constructed and available, and will not be used otherwise
93};
94
96enum class GeodesicPathApprox : char
97{
99 DijkstraBiDir,
101 DijkstraAStar,
103 FastMarching
104};
105
106} //namespace MR
#define MRMESH_API
Definition MRMeshFwd.h:80
Smooth
Definition MRObjectLinesHolder.h:11
Processing
EdgeWeights
ColoringType
OffsetMode
OrientNormals
VertexMass
Definition MRCameraOrientationPlugin.h:8
MRMESH_API const char * asString(ColoringType ct)
returns string representation of enum values