Public Member Functions | |
| Laplacian (Mesh mesh) | |
| void | init (VertBitSet freeVerts, EdgeWeights weights) |
| void | init (VertBitSet freeVerts, EdgeWeights weights, VertexMass vmass, RememberShape rem) |
| void | fixVertex (number v, boolean smooth) |
| void | apply () |
| void | fixVertex (number v, Vector3f fixedPos, boolean smooth) |
Laplacian to smoothly deform a region preserving mesh fine details. How to use:
| Laplacian::Laplacian | ( | Mesh | mesh | ) |
| void Laplacian::apply | ( | ) |
takes fixed vertex positions from the points vector passed to a constructor, computes and writes free vertex positions in the points vector passed to a constructor as well
| void Laplacian::fixVertex | ( | number | v, |
| boolean | smooth ) |
notify Laplacian that given vertex has changed after init and must be fixed during apply;
| smooth | whether to make the surface smooth in this vertex (sharp otherwise) |
notify Laplacian that given vertex has changed after init and must be fixed during apply;
| smooth | whether to make the surface smooth in this vertex (sharp otherwise) |
| void Laplacian::init | ( | VertBitSet | freeVerts, |
| EdgeWeights | weights ) |
(re)initialize Laplacian for the region being deformed, here region properties are remembered and precomputed;
| freeVerts | must not include all vertices of a mesh connected component; |
| usePoints | is not nullptr, then these points will be used instead of passed to a constructor for weights computation and shape memory |
| void Laplacian::init | ( | VertBitSet | freeVerts, |
| EdgeWeights | weights, | ||
| VertexMass | vmass, | ||
| RememberShape | rem ) |
(re)initialize Laplacian for the region being deformed, here region properties are remembered and precomputed;
| freeVerts | must not include all vertices of a mesh connected component; |
| usePoints | is not nullptr, then these points will be used instead of passed to a constructor for weights computation and shape memory |