MeshLib Documentation
Loading...
Searching...
No Matches
MR::FreeFormDeformer Class Reference

#include <MRFreeFormDeformer.h>

Public Member Functions

MRMESH_API FreeFormDeformer (VertCoords &coords, const VertBitSet &valid)
 
MRMESH_API void init (const Vector3i &resolution=Vector3i::diagonal(2), const Box3f &initialBox=Box3f())
 
MRMESH_API void setRefGridPointPosition (const Vector3i &coordOfPointInGrid, const Vector3f &newPos)
 
MRMESH_API const Vector3f & getRefGridPointPosition (const Vector3i &coordOfPointInGrid) const
 
MRMESH_API void apply () const
 
MRMESH_API Vector3f applySinglePoint (const Vector3f &point) const
 
MRMESH_API int getIndex (const Vector3i &coordOfPointInGrid) const
 
MRMESH_API Vector3i getCoord (int index) const
 
const std::vector< Vector3f > & getAllRefGridPositions () const
 
void setAllRefGridPositions (const std::vector< Vector3f > &refPoints)
 
const Vector3i & getResolution () const
 

Constructor & Destructor Documentation

◆ FreeFormDeformer()

MRMESH_API MR::FreeFormDeformer::FreeFormDeformer ( VertCoords & coords,
const VertBitSet & valid )

Member Function Documentation

◆ apply()

MRMESH_API void MR::FreeFormDeformer::apply ( ) const

◆ applySinglePoint()

MRMESH_API Vector3f MR::FreeFormDeformer::applySinglePoint ( const Vector3f & point) const

◆ getAllRefGridPositions()

const std::vector< Vector3f > & MR::FreeFormDeformer::getAllRefGridPositions ( ) const
inline

◆ getCoord()

MRMESH_API Vector3i MR::FreeFormDeformer::getCoord ( int index) const

◆ getIndex()

MRMESH_API int MR::FreeFormDeformer::getIndex ( const Vector3i & coordOfPointInGrid) const

◆ getRefGridPointPosition()

MRMESH_API const Vector3f & MR::FreeFormDeformer::getRefGridPointPosition ( const Vector3i & coordOfPointInGrid) const

◆ getResolution()

const Vector3i & MR::FreeFormDeformer::getResolution ( ) const
inline

◆ init()

MRMESH_API void MR::FreeFormDeformer::init ( const Vector3i & resolution = Vector3i::diagonal(2),
const Box3f & initialBox = Box3f() )

◆ setAllRefGridPositions()

void MR::FreeFormDeformer::setAllRefGridPositions ( const std::vector< Vector3f > & refPoints)
inline

◆ setRefGridPointPosition()

MRMESH_API void MR::FreeFormDeformer::setRefGridPointPosition ( const Vector3i & coordOfPointInGrid,
const Vector3f & newPos )

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