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