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

This class represents tooth id. More...

#include <MRTeethMaskToDirectionVolume.h>

Public Member Functions

MRMESH_API int fdi () const
 Returns FDI representation of the id.
 
auto operator<=> (const DentalId &other) const =default
 

Static Public Member Functions

template<int id>
static constexpr DentalId fromFDI ()
 Creates id from FDI number known at compile time.
 
static MRMESH_API std::optional< DentalIdfromFDI (int id)
 Creates id from FDI number known only at runtime.
 

Detailed Description

This class represents tooth id.

Member Function Documentation

◆ fdi()

MRMESH_API int MR::DentalId::fdi ( ) const

Returns FDI representation of the id.

◆ fromFDI() [1/2]

template<int id>
static constexpr DentalId MR::DentalId::fromFDI ( )
inlinestaticconstexpr

Creates id from FDI number known at compile time.

◆ fromFDI() [2/2]

static MRMESH_API std::optional< DentalId > MR::DentalId::fromFDI ( int id)
static

Creates id from FDI number known only at runtime.

◆ operator<=>()

auto MR::DentalId::operator<=> ( const DentalId & other) const
default

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