MeshLib Documentation
Loading...
Searching...
No Matches
MR::SharpenMarchingCubesMeshSettings Struct Reference

#include <MRSharpenMarchingCubesMesh.h>

Public Attributes

float minNewVertDev = 0
 
float maxNewRank2VertDev = 0
 
float maxNewRank3VertDev = 0
 
float offset = 0
 relative to reference mesh
 
float maxOldVertPosCorrection = 0
 
int posSelIters = 3
 
UndirectedEdgeBitSet * outSharpEdges = nullptr
 if non-null then created sharp edges will be saved here
 

Member Data Documentation

◆ maxNewRank2VertDev

float MR::SharpenMarchingCubesMeshSettings::maxNewRank2VertDev = 0

maximal surface deviation to introduce new rank 2 vertex (on intersection of 2 planes); recommended set equal to ( 5 * voxel size )

◆ maxNewRank3VertDev

float MR::SharpenMarchingCubesMeshSettings::maxNewRank3VertDev = 0

maximal surface deviation to introduce new rank 3 vertex (on intersection of 3 planes); recommended set equal to ( 2 * voxel size )

◆ maxOldVertPosCorrection

float MR::SharpenMarchingCubesMeshSettings::maxOldVertPosCorrection = 0

correct positions of the input vertices using reference mesh by not more than this distance; big correction can be wrong and result from self-intersections in the reference mesh recommended set equal to ( voxel size / 2 )

◆ minNewVertDev

float MR::SharpenMarchingCubesMeshSettings::minNewVertDev = 0

minimal surface deviation to introduce new vertex in a voxel; recommended set equal to ( voxel size / 25 )

◆ offset

float MR::SharpenMarchingCubesMeshSettings::offset = 0

relative to reference mesh

◆ outSharpEdges

UndirectedEdgeBitSet* MR::SharpenMarchingCubesMeshSettings::outSharpEdges = nullptr

if non-null then created sharp edges will be saved here

◆ posSelIters

int MR::SharpenMarchingCubesMeshSettings::posSelIters = 3

the number of iterations to best select positions for new vertices, the probability of self-intersections and spikes are higher if posSelIters = 0


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