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

#include <MRTeethMaskToDirectionVolume.h>

Classes

struct  ProcessResult
 

Public Types

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

Public Member Functions

MRMESH_API const HashMap< DentalId, Box3i > & getToothBounds () const
 Returns all the teeth present in volume and corresponding bounding boxes.
 
MRMESH_API Expected< ProcessResultconvertTooth (DentalId id) const
 Converts single tooth into direction volume.
 
MRMESH_API Expected< ProcessResultconvertAll () const
 Converts all the teeth into direction volume.
 

Static Public Member Functions

static MRMESH_API Expected< TeethMaskToDirectionVolumeConvertorcreate (const VdbVolume &volume)
 Initialize class.
 

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<SimpleVolume, 3>

See meshToDirectionVolume for details.

Member Function Documentation

◆ convertAll()

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

Converts all the teeth into direction volume.

◆ convertTooth()

MRMESH_API Expected< ProcessResult > MR::TeethMaskToDirectionVolumeConvertor::convertTooth ( DentalId id) const

Converts single tooth into direction volume.

◆ create()

static MRMESH_API Expected< TeethMaskToDirectionVolumeConvertor > MR::TeethMaskToDirectionVolumeConvertor::create ( const VdbVolume & volume)
static

Initialize class.

◆ getToothBounds()

MRMESH_API const HashMap< DentalId, Box3i > & MR::TeethMaskToDirectionVolumeConvertor::getToothBounds ( ) const

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


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