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
9enum class VertexMass
10{
12 Unit = 0,
13
16};
17
19enum class EdgeWeights
20{
22 Unit = 0,
23
25 Cotan
26
28 // CotanWithAreaEqWeight => use EdgeWeights::Cotan and VertexMass::NeiArea instead
29};
30
32enum class Processing : bool
33{
35 Stop
36};
37
39enum class OrientNormals
40{
43 Smart
44};
45
46enum class OffsetMode : int
47{
48 Smooth,
49 Standard,
51};
52
63
65[[nodiscard]] MRMESH_API const char * asString( ColoringType ct );
66
67enum class UseAABBTree : char
68{
69 No, // AABB-tree of the mesh will not be used, even if it is available
70 Yes, // AABB-tree of the mesh will be used even if it has to be constructed
71 YesIfAlreadyConstructed, // AABB-tree of the mesh will be used if it was previously constructed and available, and will not be used otherwise
72};
73
75enum class GeodesicPathApprox : char
76{
83};
84
85} //namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:80
Definition MRCameraOrientationPlugin.h:8
GeodesicPathApprox
the algorithm to compute approximately geodesic path
Definition MREnums.h:76
@ 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
ColoringType
Definition MREnums.h:56
@ 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:20
@ Cotan
edge weight depends on local geometry and uses cotangent values
OffsetMode
Definition MREnums.h:47
@ 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:10
@ 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:33
OrientNormals
the method how to choose between two opposite normal orientations
Definition MREnums.h:40
UseAABBTree
Definition MREnums.h:68