MeshLib
 
Loading...
Searching...
No Matches
MR::TeethMaskToDirectionVolumeConvertor Class Reference

#include <MRTeethMaskToDirectionVolume.h>

Classes

struct  ProcessResult
 

Public Types

using DirectionVolume = std::array<SimpleVolumeMinMax, 3>
 See meshToDirectionVolume for details.
 

Public Member Functions

MRVOXELS_API const HashMap< int, Box3i > & getObjectBounds () const
 Returns all the objects present in volume and corresponding bounding boxes.
 
MRVOXELS_API Expected< ProcessResultconvertObject (int id) const
 Converts single object into direction volume.
 
MRVOXELS_API Expected< ProcessResultconvertAll () const
 Converts all the objects into direction volume.
 

Static Public Member Functions

static MRVOXELS_API Expected< TeethMaskToDirectionVolumeConvertorcreate (const VdbVolume &volume, const std::vector< int > &additionalIds={})
 

Detailed Description

This class is an alternative to directly invoking meshToDirectionVolume for the mesh retrieved from the teeth mask. It is better because when a single mesh is created from mask, some neighboring teeth might fuse together, creating incorrect mask. This class invokes meshing for each teeth separately, thus eliminating this problem.

Member Typedef Documentation

◆ DirectionVolume

using MR::TeethMaskToDirectionVolumeConvertor::DirectionVolume = std::array<SimpleVolumeMinMax, 3>

See meshToDirectionVolume for details.

Member Function Documentation

◆ convertAll()

MRVOXELS_API Expected< ProcessResult > MR::TeethMaskToDirectionVolumeConvertor::convertAll ( ) const

Converts all the objects into direction volume.

◆ convertObject()

MRVOXELS_API Expected< ProcessResult > MR::TeethMaskToDirectionVolumeConvertor::convertObject ( int id) const

Converts single object into direction volume.

◆ create()

static MRVOXELS_API Expected< TeethMaskToDirectionVolumeConvertor > MR::TeethMaskToDirectionVolumeConvertor::create ( const VdbVolume & volume,
const std::vector< int > & additionalIds = {} )
static

Initialize class

Parameters
volumeVoxel mask
additionalIdsList of additional ids (besides teeth) to convert

◆ getObjectBounds()

MRVOXELS_API const HashMap< int, Box3i > & MR::TeethMaskToDirectionVolumeConvertor::getObjectBounds ( ) const

Returns all the objects present in volume and corresponding bounding boxes.


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