Public Member Functions | |
None | __init__ (self, Mesh mesh, AffineXf3f meshXf, VdbVolume volume, AffineXf3f volumeXf) |
None | __init__ (self, MeshOnVoxelsT_Mesh other) |
Vector3f | getOffsetVector (self, VertId v) |
None | getPoints (self, std_vector_Vector3_float result, Vector3f pos, Vector3f offset) |
float | getValue (self, Vector3f pos) |
None | getValues (self, std_vector_float result, Vector3f pos, Vector3f offset) |
Mesh | mesh (self) |
int | numVerts (self) |
Vector3f | point (self, VertId v) |
VdbVolume | volume (self) |
float | voxelSize (self) |
AffineXf3f | xf (self) |
Vector3f | xf (self, Vector3f pt) |
AffineXf3f | xfInv (self) |
Vector3f | xfInv (self, Vector3f pt) |
Static Public Member Functions | |
PolynomialWrapper_float | getBestPolynomial (std_vector_float values, int degree) |
None | getDerivatives (std_vector_float result, std_vector_float values) |
float | indexFromPseudoIndex (float pseudoIndex, int count) |
float | pseudoIndex (float index, int count) |
float | pseudoIndex (int index, int count) |
Generated from: MR::MeshOnVoxelsT<MR::Mesh> Aliases: MeshOnVoxels Helper class to organize mesh and voxels volume access and build point sequences \\note this class is not thread-safe but accessing same volume from different instances is ok \\ingroup SubvoxelMeshCorrection
None meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.__init__ | ( | self, | |
Mesh | mesh, | ||
AffineXf3f | meshXf, | ||
VdbVolume | volume, | ||
AffineXf3f | volumeXf ) |
None meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.__init__ | ( | self, | |
MeshOnVoxelsT_Mesh | other ) |
|
static |
|
static |
Get derivatives from result of `getValues`
Get offset vector (mesh normal for a vertex with `voxelSize` length)
None meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.getPoints | ( | self, | |
std_vector_Vector3_float | result, | ||
Vector3f | pos, | ||
Vector3f | offset ) |
Get row of points with `offset` stride
float meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.getValue | ( | self, | |
Vector3f | pos ) |
Volume value
None meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.getValues | ( | self, | |
std_vector_float | result, | ||
Vector3f | pos, | ||
Vector3f | offset ) |
Get volume values for a row of points
|
static |
Mesh meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.mesh | ( | self | ) |
Access to base data
int meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.numVerts | ( | self | ) |
Cached number of valid vertices
|
static |
Get a pseudo-index for a zero-based point index in a zero-centered row of `count` points Pseudo-index is a signed number; for whole index, is is whole or half-whole
|
static |
VdbVolume meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.volume | ( | self | ) |
float meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.voxelSize | ( | self | ) |
Voxel size as scalar
AffineXf3f meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.xf | ( | self | ) |
Transformation mesh to volume All points are in voxels volume space, unless otherwise is implied
AffineXf3f meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.xfInv | ( | self | ) |