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

Public Member Functions

None __init__ (self, VertCoords coords, VertBitSet valid)
 
None __init__ (self, FreeFormDeformer arg0)
 
None apply (self)
 
Vector3f applySinglePoint (self, Vector3f point)
 
std_vector_Vector3_float getAllRefGridPositions (self)
 
Vector3i getCoord (self, int index)
 
int getIndex (self, Vector3i coordOfPointInGrid)
 
Vector3f getRefGridPointPosition (self, Vector3i coordOfPointInGrid)
 
Vector3i getResolution (self)
 
None init (self, Vector3i resolution='Vector3i::diagonal(2)', Box3f initialBox='MR::Box3f()')
 
None setAllRefGridPositions (self, std_vector_Vector3_float refPoints)
 
None setRefGridPointPosition (self, Vector3i coordOfPointInGrid, Vector3f newPos)
 

Detailed Description

Generated from:  MR::FreeFormDeformer

Class for deforming mesh using trilinear interpolation

Constructor & Destructor Documentation

◆ __init__() [1/2]

None meshlib.mrmeshpy.FreeFormDeformer.__init__ ( self,
VertCoords coords,
VertBitSet valid )
Only set mesh ref

◆ __init__() [2/2]

None meshlib.mrmeshpy.FreeFormDeformer.__init__ ( self,
FreeFormDeformer arg0 )
Implicit copy constructor.

Member Function Documentation

◆ apply()

None meshlib.mrmeshpy.FreeFormDeformer.apply ( self)
Parallel apply updated grid to all mesh points
ensure updating render object after using it

◆ applySinglePoint()

Vector3f meshlib.mrmeshpy.FreeFormDeformer.applySinglePoint ( self,
Vector3f point )
Apply updated grid to given point

◆ getAllRefGridPositions()

std_vector_Vector3_float meshlib.mrmeshpy.FreeFormDeformer.getAllRefGridPositions ( self)

◆ getCoord()

Vector3i meshlib.mrmeshpy.FreeFormDeformer.getCoord ( self,
int index )
Get grid coord by index

◆ getIndex()

int meshlib.mrmeshpy.FreeFormDeformer.getIndex ( self,
Vector3i coordOfPointInGrid )
Get one dimension index by grid coord

◆ getRefGridPointPosition()

Vector3f meshlib.mrmeshpy.FreeFormDeformer.getRefGridPointPosition ( self,
Vector3i coordOfPointInGrid )
Gets ref grid point position

◆ getResolution()

Vector3i meshlib.mrmeshpy.FreeFormDeformer.getResolution ( self)

◆ init()

None meshlib.mrmeshpy.FreeFormDeformer.init ( self,
Vector3i resolution = 'Vector3i::diagonal(2)',
Box3f initialBox = 'MR::Box3f()' )
Parallel calculates all points normed positions
sets ref grid by initialBox, if initialBox is invalid use mesh bounding box instead 

◆ setAllRefGridPositions()

None meshlib.mrmeshpy.FreeFormDeformer.setAllRefGridPositions ( self,
std_vector_Vector3_float refPoints )

◆ setRefGridPointPosition()

None meshlib.mrmeshpy.FreeFormDeformer.setRefGridPointPosition ( self,
Vector3i coordOfPointInGrid,
Vector3f newPos )
Updates ref grid point position

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