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

Parameters' structure for MR::mergeVolumePart. More...

#include <MRVoxelsConversionsByParts.h>

Public Types

using PreCutCallback = std::function<void( Mesh& mesh, float leftCutPosition, float rightCutPosition )>
 callback to process the generated mesh before the side cutting, e.g. fixing specific generation artifacts
 
using PostCutCallback = std::function<void( Mesh& )>
 callback to process the generated mesh after the side cutting, e.g. decimating
 
using PostMergeCallback = std::function<void( Mesh&, const PartMapping& )>
 

Public Attributes

PreCutCallback preCut = nullptr
 
PostCutCallback postCut = nullptr
 
PostMergeCallback postMerge = nullptr
 
PartMapping mapping = {}
 mapping with initialized maps required for the postMerge callback
 
Vector3f origin = {}
 origin (position of the (0;0;0) voxel) of the voxel volume part, usually specified for SimpleVolume
 

Detailed Description

Parameters' structure for MR::mergeVolumePart.

See also
mergeVolumePart

Member Typedef Documentation

◆ PostCutCallback

using MR::MergeVolumePartSettings::PostCutCallback = std::function<void( Mesh& )>

callback to process the generated mesh after the side cutting, e.g. decimating

◆ PostMergeCallback

using MR::MergeVolumePartSettings::PostMergeCallback = std::function<void( Mesh&, const PartMapping& )>

callback to process the destination mesh after merging, usually to map the generated mesh's faces/edges/vertices the second parameter is identical to the mapping field, except for one case: if the mapping is not initialized, only src2tgtEdges map will be provided (since it's used during processing)

◆ PreCutCallback

using MR::MergeVolumePartSettings::PreCutCallback = std::function<void( Mesh& mesh, float leftCutPosition, float rightCutPosition )>

callback to process the generated mesh before the side cutting, e.g. fixing specific generation artifacts

Member Data Documentation

◆ mapping

PartMapping MR::MergeVolumePartSettings::mapping = {}

mapping with initialized maps required for the postMerge callback

◆ origin

Vector3f MR::MergeVolumePartSettings::origin = {}

origin (position of the (0;0;0) voxel) of the voxel volume part, usually specified for SimpleVolume

◆ postCut

PostCutCallback MR::MergeVolumePartSettings::postCut = nullptr

◆ postMerge

PostMergeCallback MR::MergeVolumePartSettings::postMerge = nullptr

◆ preCut

PreCutCallback MR::MergeVolumePartSettings::preCut = nullptr

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