MeshLib
 
Loading...
Searching...
No Matches
MR::GeneralOffsetParameters Struct Reference

allows the user to select in the parameters which offset algorithm to call More...

#include <MROffset.h>

+ Inheritance diagram for MR::GeneralOffsetParameters:

Public Types

enum class  Mode : int { Smooth , Standard , Sharpening }
 

Public Attributes

Mode mode = Mode::Standard
 
- Public Attributes inherited from MR::SharpOffsetParameters
UndirectedEdgeBitSetoutSharpEdges = nullptr
 if non-null then created sharp edges will be saved here
 
float minNewVertDev = 1.0f / 25
 minimal surface deviation to introduce new vertex in a voxel, measured in voxelSize
 
float maxNewRank2VertDev = 5
 maximal surface deviation to introduce new rank 2 vertex (on intersection of 2 planes), measured in voxelSize
 
float maxNewRank3VertDev = 2
 maximal surface deviation to introduce new rank 3 vertex (on intersection of 3 planes), measured in voxelSize
 
float maxOldVertPosCorrection = 0.5f
 
- Public Attributes inherited from MR::OffsetParameters
SignDetectionMode signDetectionMode = SignDetectionMode::OpenVDB
 determines the method to compute distance sign
 
std::shared_ptr< IFastWindingNumberfwn
 defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used
 
bool memoryEfficient = false
 
- Public Attributes inherited from MR::BaseShellParameters
float voxelSize = 0
 
ProgressCallback callBack
 Progress callback.
 

Detailed Description

allows the user to select in the parameters which offset algorithm to call

Member Enumeration Documentation

◆ Mode

enum class MR::GeneralOffsetParameters::Mode : int
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

Member Data Documentation

◆ mode

Mode MR::GeneralOffsetParameters::mode = Mode::Standard

The documentation for this struct was generated from the following file: