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

#include <MROffset.h>

+ Inheritance diagram for MR::OffsetParameters:

Public Attributes

SignDetectionMode signDetectionMode = SignDetectionMode::OpenVDB
 determines the method to compute distance sign
 
float windingNumberThreshold = 0.5f
 
float windingNumberBeta = 2
 
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 = true
 
- Public Attributes inherited from MR::BaseShellParameters
float voxelSize = 0
 
ProgressCallback callBack
 Progress callback.
 

Member Data Documentation

◆ fwn

std::shared_ptr<IFastWindingNumber> MR::OffsetParameters::fwn

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used

◆ memoryEfficient

bool MR::OffsetParameters::memoryEfficient = true

use FunctionVolume for voxel grid representation:

  • memory consumption for voxel storage is approx. (dims.z / (2 * thread_count)) lesser
  • computations are about 15% slower (because some z-layers are computed twice) this setting is ignored (as if memoryEfficient == false) if a) signDetectionMode = SignDetectionMode::OpenVDB, or b) fwn is provided (CUDA computations require full memory storage) used only by mcOffsetMesh and sharpOffsetMesh methods

◆ signDetectionMode

SignDetectionMode MR::OffsetParameters::signDetectionMode = SignDetectionMode::OpenVDB

determines the method to compute distance sign

◆ windingNumberBeta

float MR::OffsetParameters::windingNumberBeta = 2

only for SignDetectionMode::HoleWindingRule: determines the precision of fast approximation: the more the better, minimum value is 1

◆ windingNumberThreshold

float MR::OffsetParameters::windingNumberThreshold = 0.5f

only for SignDetectionMode::HoleWindingRule: positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes


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