Class for deforming mesh using Bernstein interpolation. More...
#include <MRFreeFormDeformer.h>
Public Member Functions | |
| MRMESH_API | FreeFormDeformer (VertCoords &coords, const VertBitSet &valid) |
| Only set mesh ref. | |
| MRMESH_API | FreeFormDeformer (Mesh &mesh, const VertBitSet *region=nullptr) |
| MRMESH_API void | init (const Vector3i &resolution=Vector3i::diagonal(2), const Box3f &initialBox=Box3f()) |
| MRMESH_API void | setRefGridPointPosition (const Vector3i &coordOfPointInGrid, const Vector3f &newPos) |
| Updates ref grid point position. | |
| MRMESH_API const Vector3f & | getRefGridPointPosition (const Vector3i &coordOfPointInGrid) const |
| Gets ref grid point position. | |
| MRMESH_API void | apply () const |
| MRMESH_API Vector3f | applySinglePoint (const Vector3f &point) const |
| Apply updated grid to given point. | |
| MRMESH_API int | getIndex (const Vector3i &coordOfPointInGrid) const |
| Get one dimension index by grid coord. | |
| MRMESH_API Vector3i | getCoord (int index) const |
| Get grid coord by index. | |
| const std::vector< Vector3f > & | getAllRefGridPositions () const |
| void | setAllRefGridPositions (const std::vector< Vector3f > &refPoints) |
| const Vector3i & | getResolution () const |
Class for deforming mesh using Bernstein interpolation.