MeshLib Documentation
Loading...
Searching...
No Matches
MR::MeshOnVoxelsT< MeshType > Class Template Reference

#include <MRMoveMeshToVoxelMaxDeriv.h>

Public Member Functions

MRVOXELS_API MeshOnVoxelsT (MeshType &mesh, const AffineXf3f &meshXf, const VdbVolume &volume, const AffineXf3f &volumeXf)
 
MRVOXELS_API MeshOnVoxelsT (const MeshOnVoxelsT &other)
 
MRVOXELS_API MeshType & mesh () const
 
MRVOXELS_API const VdbVolume & volume () const
 
MRVOXELS_API int numVerts () const
 
MRVOXELS_API float voxelSize () const
 
MRVOXELS_API AffineXf3f xf () const
 
MRVOXELS_API Vector3f xf (const Vector3f &pt) const
 
MRVOXELS_API AffineXf3f xfInv () const
 
MRVOXELS_API Vector3f xfInv (const Vector3f &pt) const
 
MRVOXELS_API Vector3f point (VertId v) const
 
MRVOXELS_API float getValue (const Vector3f &pos) const
 
MRVOXELS_API Vector3f getOffsetVector (VertId v) const
 
MRVOXELS_API void getPoints (std::vector< Vector3f > &result, const Vector3f &pos, const Vector3f &offset) const
 
MRVOXELS_API void getValues (std::vector< float > &result, const Vector3f &pos, const Vector3f &offset) const
 

Static Public Member Functions

static MRVOXELS_API float pseudoIndex (float index, int count)
 
static MRVOXELS_API float pseudoIndex (int index, int count)
 
static MRVOXELS_API float indexFromPseudoIndex (float pseudoIndex, int count)
 
static MRVOXELS_API void getDerivatives (std::vector< float > &result, const std::vector< float > &values)
 
static Parabolaf getBestParabola (auto begin, auto end)
 
template<size_t degree>
static Polynomialf< degree > getBestPolynomial (const std::vector< float > &values)
 
static MRVOXELS_API PolynomialWrapperf getBestPolynomial (const std::vector< float > &values, size_t degree)
 

Constructor & Destructor Documentation

◆ MeshOnVoxelsT() [1/2]

template<typename MeshType >
MRVOXELS_API MR::MeshOnVoxelsT< MeshType >::MeshOnVoxelsT ( MeshType & mesh,
const AffineXf3f & meshXf,
const VdbVolume & volume,
const AffineXf3f & volumeXf )

◆ MeshOnVoxelsT() [2/2]

template<typename MeshType >
MRVOXELS_API MR::MeshOnVoxelsT< MeshType >::MeshOnVoxelsT ( const MeshOnVoxelsT< MeshType > & other)

Member Function Documentation

◆ getBestParabola()

template<typename MeshType >
static Parabolaf MR::MeshOnVoxelsT< MeshType >::getBestParabola ( auto begin,
auto end )
inlinestatic

◆ getBestPolynomial() [1/2]

template<typename MeshType >
template<size_t degree>
static Polynomialf< degree > MR::MeshOnVoxelsT< MeshType >::getBestPolynomial ( const std::vector< float > & values)
inlinestatic

◆ getBestPolynomial() [2/2]

template<typename MeshType >
static MRVOXELS_API PolynomialWrapperf MR::MeshOnVoxelsT< MeshType >::getBestPolynomial ( const std::vector< float > & values,
size_t degree )
static

◆ getDerivatives()

template<typename MeshType >
static MRVOXELS_API void MR::MeshOnVoxelsT< MeshType >::getDerivatives ( std::vector< float > & result,
const std::vector< float > & values )
static

◆ getOffsetVector()

template<typename MeshType >
MRVOXELS_API Vector3f MR::MeshOnVoxelsT< MeshType >::getOffsetVector ( VertId v) const

◆ getPoints()

template<typename MeshType >
MRVOXELS_API void MR::MeshOnVoxelsT< MeshType >::getPoints ( std::vector< Vector3f > & result,
const Vector3f & pos,
const Vector3f & offset ) const

◆ getValue()

template<typename MeshType >
MRVOXELS_API float MR::MeshOnVoxelsT< MeshType >::getValue ( const Vector3f & pos) const

◆ getValues()

template<typename MeshType >
MRVOXELS_API void MR::MeshOnVoxelsT< MeshType >::getValues ( std::vector< float > & result,
const Vector3f & pos,
const Vector3f & offset ) const

◆ indexFromPseudoIndex()

template<typename MeshType >
static MRVOXELS_API float MR::MeshOnVoxelsT< MeshType >::indexFromPseudoIndex ( float pseudoIndex,
int count )
static

◆ mesh()

template<typename MeshType >
MRVOXELS_API MeshType & MR::MeshOnVoxelsT< MeshType >::mesh ( ) const

◆ numVerts()

template<typename MeshType >
MRVOXELS_API int MR::MeshOnVoxelsT< MeshType >::numVerts ( ) const

◆ point()

template<typename MeshType >
MRVOXELS_API Vector3f MR::MeshOnVoxelsT< MeshType >::point ( VertId v) const

◆ pseudoIndex() [1/2]

template<typename MeshType >
static MRVOXELS_API float MR::MeshOnVoxelsT< MeshType >::pseudoIndex ( float index,
int count )
static

◆ pseudoIndex() [2/2]

template<typename MeshType >
static MRVOXELS_API float MR::MeshOnVoxelsT< MeshType >::pseudoIndex ( int index,
int count )
static

◆ volume()

template<typename MeshType >
MRVOXELS_API const VdbVolume & MR::MeshOnVoxelsT< MeshType >::volume ( ) const

◆ voxelSize()

template<typename MeshType >
MRVOXELS_API float MR::MeshOnVoxelsT< MeshType >::voxelSize ( ) const

◆ xf() [1/2]

template<typename MeshType >
MRVOXELS_API AffineXf3f MR::MeshOnVoxelsT< MeshType >::xf ( ) const

◆ xf() [2/2]

template<typename MeshType >
MRVOXELS_API Vector3f MR::MeshOnVoxelsT< MeshType >::xf ( const Vector3f & pt) const

◆ xfInv() [1/2]

template<typename MeshType >
MRVOXELS_API AffineXf3f MR::MeshOnVoxelsT< MeshType >::xfInv ( ) const

◆ xfInv() [2/2]

template<typename MeshType >
MRVOXELS_API Vector3f MR::MeshOnVoxelsT< MeshType >::xfInv ( const Vector3f & pt) const

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