#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) |
Helper class to organize mesh and voxels volume access and build point sequences
MRVOXELS_API MR::MeshOnVoxelsT< MeshType >::MeshOnVoxelsT | ( | MeshType & | mesh, |
const AffineXf3f & | meshXf, | ||
const VdbVolume & | volume, | ||
const AffineXf3f & | volumeXf ) |
MRVOXELS_API MR::MeshOnVoxelsT< MeshType >::MeshOnVoxelsT | ( | const MeshOnVoxelsT< MeshType > & | other | ) |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
MRVOXELS_API Vector3f MR::MeshOnVoxelsT< MeshType >::getOffsetVector | ( | VertId | v | ) | const |
MRVOXELS_API void MR::MeshOnVoxelsT< MeshType >::getPoints | ( | std::vector< Vector3f > & | result, |
const Vector3f & | pos, | ||
const Vector3f & | offset ) const |
MRVOXELS_API float MR::MeshOnVoxelsT< MeshType >::getValue | ( | const Vector3f & | pos | ) | const |
MRVOXELS_API void MR::MeshOnVoxelsT< MeshType >::getValues | ( | std::vector< float > & | result, |
const Vector3f & | pos, | ||
const Vector3f & | offset ) const |
|
static |
MRVOXELS_API MeshType & MR::MeshOnVoxelsT< MeshType >::mesh | ( | ) | const |
MRVOXELS_API int MR::MeshOnVoxelsT< MeshType >::numVerts | ( | ) | const |
MRVOXELS_API Vector3f MR::MeshOnVoxelsT< MeshType >::point | ( | VertId | v | ) | const |
|
static |
|
static |
MRVOXELS_API const VdbVolume & MR::MeshOnVoxelsT< MeshType >::volume | ( | ) | const |
MRVOXELS_API float MR::MeshOnVoxelsT< MeshType >::voxelSize | ( | ) | const |
MRVOXELS_API AffineXf3f MR::MeshOnVoxelsT< MeshType >::xf | ( | ) | const |
MRVOXELS_API Vector3f MR::MeshOnVoxelsT< MeshType >::xf | ( | const Vector3f & | pt | ) | const |
MRVOXELS_API AffineXf3f MR::MeshOnVoxelsT< MeshType >::xfInv | ( | ) | const |
MRVOXELS_API Vector3f MR::MeshOnVoxelsT< MeshType >::xfInv | ( | const Vector3f & | pt | ) | const |