MeshLib C Docs
Loading...
Searching...
No Matches
MREnums.h File Reference
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef int32_t MR_VertexMass
 determines the weight or mass of each vertex in applications like Laplacian
 
typedef int32_t MR_EdgeWeights
 determines the weight of each edge in applications like Laplacian
 
typedef bool MR_Processing
 typically returned from callbacks to control the behavior of main algorithm
 
typedef int32_t MR_OrientNormals
 the method how to choose between two opposite normal orientations
 
typedef int32_t MR_OffsetMode
 
typedef int32_t MR_ColoringType
 
typedef char MR_UseAABBTree
 
typedef char MR_GeodesicPathApprox
 the algorithm to compute approximately geodesic path
 

Enumerations

enum  { MR_VertexMass_Unit = 0 , MR_VertexMass_NeiArea = 1 }
 
enum  { MR_EdgeWeights_Unit = 0 , MR_EdgeWeights_Cotan = 1 }
 
enum  { MR_Processing_Continue = 0 , MR_Processing_Stop = 1 }
 
enum  { MR_OrientNormals_TowardOrigin = 0 , MR_OrientNormals_AwayFromOrigin = 1 , MR_OrientNormals_Smart = 2 }
 
enum  { MR_OffsetMode_Smooth = 0 , MR_OffsetMode_Standard = 1 , MR_OffsetMode_Sharpening = 2 }
 
enum  {
  MR_ColoringType_SolidColor = 0 , MR_ColoringType_PrimitivesColorMap = 1 , MR_ColoringType_FacesColorMap = 1 , MR_ColoringType_LinesColorMap = 1 ,
  MR_ColoringType_VertsColorMap = 2
}
 
enum  { MR_UseAABBTree_No = 0 , MR_UseAABBTree_Yes = 1 , MR_UseAABBTree_YesIfAlreadyConstructed = 2 }
 
enum  { MR_GeodesicPathApprox_DijkstraBiDir = 0 , MR_GeodesicPathApprox_DijkstraAStar = 1 , MR_GeodesicPathApprox_FastMarching = 2 }
 

Functions

MRC_API const char * MR_asString_MR_ColoringType (MR_ColoringType ct)
 

Typedef Documentation

◆ MR_ColoringType

typedef int32_t MR_ColoringType

Type of object coloring,

Note
that texture are applied over main coloring

◆ MR_EdgeWeights

typedef int32_t MR_EdgeWeights

determines the weight of each edge in applications like Laplacian

◆ MR_GeodesicPathApprox

typedef char MR_GeodesicPathApprox

the algorithm to compute approximately geodesic path

◆ MR_OffsetMode

typedef int32_t MR_OffsetMode

◆ MR_OrientNormals

typedef int32_t MR_OrientNormals

the method how to choose between two opposite normal orientations

◆ MR_Processing

typedef bool MR_Processing

typically returned from callbacks to control the behavior of main algorithm

◆ MR_UseAABBTree

typedef char MR_UseAABBTree

◆ MR_VertexMass

typedef int32_t MR_VertexMass

determines the weight or mass of each vertex in applications like Laplacian

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MR_VertexMass_Unit 

all vertices have same mass=1

MR_VertexMass_NeiArea 

vertex mass depends on local geometry and proportional to the area of first-ring triangles

◆ anonymous enum

anonymous enum
Enumerator
MR_EdgeWeights_Unit 

all edges have same weight=1

MR_EdgeWeights_Cotan 

edge weight depends on local geometry and uses cotangent values

◆ anonymous enum

anonymous enum
Enumerator
MR_Processing_Continue 
MR_Processing_Stop 

◆ anonymous enum

anonymous enum
Enumerator
MR_OrientNormals_TowardOrigin 
MR_OrientNormals_AwayFromOrigin 
MR_OrientNormals_Smart 

◆ anonymous enum

anonymous enum
Enumerator
MR_OffsetMode_Smooth 

create mesh using dual marching cubes from OpenVDB library

create mesh using standard marching cubes implemented in MeshLib

MR_OffsetMode_Standard 

create mesh using standard marching cubes with additional sharpening implemented in MeshLib

MR_OffsetMode_Sharpening 

◆ anonymous enum

anonymous enum
Enumerator
MR_ColoringType_SolidColor 

Use one color for whole object.

Use different color (taken from faces colormap) for each primitive

MR_ColoringType_PrimitivesColorMap 

Use different color (taken from faces colormap) for each face (primitive for object mesh)

MR_ColoringType_FacesColorMap 

Use different color (taken from faces colormap) for each line (primitive for object lines)

MR_ColoringType_LinesColorMap 

Use different color (taken from verts colormap) for each vertex.

MR_ColoringType_VertsColorMap 

◆ anonymous enum

anonymous enum
Enumerator
MR_UseAABBTree_No 
MR_UseAABBTree_Yes 
MR_UseAABBTree_YesIfAlreadyConstructed 

◆ anonymous enum

anonymous enum
Enumerator
MR_GeodesicPathApprox_DijkstraBiDir 

compute edge-only path by building it from start and end simultaneously

MR_GeodesicPathApprox_DijkstraAStar 

compute edge-only path using A*-search algorithm

MR_GeodesicPathApprox_FastMarching 

use Fast Marching algorithm

Function Documentation

◆ MR_asString_MR_ColoringType()

MRC_API const char * MR_asString_MR_ColoringType ( MR_ColoringType ct)

returns string representation of enum values Generated from function MR::asString.