MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.MeshOnVoxelsT_Mesh Class Reference

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)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__() [1/2]

None meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.__init__ ( self,
Mesh mesh,
AffineXf3f meshXf,
VdbVolume volume,
AffineXf3f volumeXf )

◆ __init__() [2/2]

None meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.__init__ ( self,
MeshOnVoxelsT_Mesh other )

Member Function Documentation

◆ getBestPolynomial()

PolynomialWrapper_float meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.getBestPolynomial ( std_vector_float values,
int degree )
static

◆ getDerivatives()

None meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.getDerivatives ( std_vector_float result,
std_vector_float values )
static
Get derivatives from result of `getValues`

◆ getOffsetVector()

Vector3f meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.getOffsetVector ( self,
VertId v )
Get offset vector (mesh normal for a vertex with `voxelSize` length)

◆ getPoints()

None meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.getPoints ( self,
std_vector_Vector3_float result,
Vector3f pos,
Vector3f offset )
Get row of points with `offset` stride

◆ getValue()

float meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.getValue ( self,
Vector3f pos )
Volume value

◆ getValues()

None meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.getValues ( self,
std_vector_float result,
Vector3f pos,
Vector3f offset )
Get volume values for a row of points

◆ indexFromPseudoIndex()

float meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.indexFromPseudoIndex ( float pseudoIndex,
int count )
static

◆ mesh()

Mesh meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.mesh ( self)
Access to base data

◆ numVerts()

int meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.numVerts ( self)
Cached number of valid vertices

◆ point()

Vector3f meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.point ( self,
VertId v )
Vertex position

◆ pseudoIndex() [1/2]

float meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.pseudoIndex ( float index,
int count )
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

◆ pseudoIndex() [2/2]

float meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.pseudoIndex ( int index,
int count )
static

◆ volume()

VdbVolume meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.volume ( self)

◆ voxelSize()

float meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.voxelSize ( self)
Voxel size as scalar

◆ xf() [1/2]

AffineXf3f meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.xf ( self)
Transformation mesh to volume
All points are in voxels volume space, unless otherwise is implied

◆ xf() [2/2]

Vector3f meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.xf ( self,
Vector3f pt )

◆ xfInv() [1/2]

AffineXf3f meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.xfInv ( self)

◆ xfInv() [2/2]

Vector3f meshlib.mrmeshpy.MeshOnVoxelsT_Mesh.xfInv ( self,
Vector3f pt )

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