MeshLib
 
Loading...
Searching...
No Matches
MROffset.h File Reference
#include "MRMeshFwd.h"
#include <MRMesh/MROffset.h>

Go to the source code of this file.

Classes

class  OffsetParameters
 
class  SharpOffsetParameters
 
class  GeneralOffsetParameters
 allows the user to select in the parameters which offset algorithm to call More...
 
class  Offset
 

Enumerations

enum class  SignDetectionMode {
  Unsigned , OpenVDB , ProjectionNormal , WindingRule ,
  HoleWindingRule
}
 
enum class  GeneralOffsetMode { Smooth , Standard , Sharpening }
 

Enumeration Type Documentation

◆ GeneralOffsetMode

enum class GeneralOffsetMode
strong
Enumerator
Smooth 

create mesh using dual marching cubes from OpenVDB library

Standard 

create mesh using standard marching cubes implemented in MeshLib

Sharpening 

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

◆ SignDetectionMode

enum class SignDetectionMode
strong
Enumerator
Unsigned 

unsigned distance, useful for bidirectional Shell offset

OpenVDB 

sign detection from OpenVDB library, which is good and fast if input geometry is closed

ProjectionNormal 

the sign is determined based on pseudonormal in closest mesh point (unsafe in case of self-intersections)

WindingRule 

ray intersection counter, significantly slower than ProjectionNormal and does not support holes in mesh

HoleWindingRule 

computes winding number generalization with support of holes in mesh, slower than WindingRule