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,
12};
13
14enum class WrapType : char
15{
16 Repeat,
17 Mirror,
18 Clamp
19};
20
22enum class Reorder : char
23{
24 None,
27};
28
30enum class VertexMass
31{
33 Unit = 0,
34
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{
56 Stop
57};
58
60enum class OrientNormals
61{
64 Smart
65};
66
67enum class OffsetMode : int
68{
69 Smooth,
70 Standard,
72};
73
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{
104};
105
106} //namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:80
Definition MRAABBTree.h:16
@ None
special value not to limit path in one slice
Definition MRVoxelPath.h:33
Definition MRCameraOrientationPlugin.h:8
GeodesicPathApprox
the algorithm to compute approximately geodesic path
Definition MREnums.h:97
@ DijkstraBiDir
compute edge-only path by building it from start and end simultaneously
@ FastMarching
use Fast Marching algorithm
@ DijkstraAStar
compute edge-only path using A*-search algorithm
WrapType
Definition MREnums.h:15
ColoringType
Definition MREnums.h:77
@ LinesColorMap
Use different color (taken from faces colormap) for each line (primitive for object lines)
@ VertsColorMap
Use different color (taken from verts colormap) for each vertex.
@ SolidColor
Use one color for whole object.
@ FacesColorMap
Use different color (taken from faces colormap) for each face (primitive for object mesh)
@ PrimitivesColorMap
Use different color (taken from faces colormap) for each primitive.
EdgeWeights
determines the weight of each edge in applications like Laplacian
Definition MREnums.h:41
@ Cotan
edge weight depends on local geometry and uses cotangent values
FilterType
Definition MREnums.h:9
OffsetMode
Definition MREnums.h:68
@ Sharpening
create mesh using standard marching cubes with additional sharpening implemented in MeshLib
@ Smooth
create mesh using dual marching cubes from OpenVDB library
@ Standard
create mesh using standard marching cubes implemented in MeshLib
MRMESH_API const char * asString(ColoringType ct)
returns string representation of enum values
VertexMass
determines the weight or mass of each vertex in applications like Laplacian
Definition MREnums.h:31
@ NeiArea
vertex mass depends on local geometry and proportional to the area of first-ring triangles
@ Unit
all vertices have same mass=1
Processing
typically returned from callbacks to control the behavior of main algorithm
Definition MREnums.h:54
OrientNormals
the method how to choose between two opposite normal orientations
Definition MREnums.h:61
UseAABBTree
Definition MREnums.h:89
Reorder
determines how points to be ordered
Definition MREnums.h:23
@ Lexicographically
the order is determined by lexicographical sorting by coordinates (optimal for uniform sampling)