|
| unsafe | Laplacian (MR._ByValue_Laplacian _other) |
| | Generated from constructor MR.Laplacian.Laplacian.
|
| unsafe | Laplacian (MR.Mesh mesh) |
| | Generated from constructor MR.Laplacian.Laplacian.
|
| unsafe | Laplacian (MR.Const_MeshTopology topology, MR.VertCoords points) |
| | Generated from constructor MR.Laplacian.Laplacian.
|
| unsafe void | init (MR.Const_VertBitSet freeVerts, MR.EdgeWeights weights, MR.VertexMass? vmass=null, MR.RememberShape? rem=null) |
| | (re)initialize Laplacian for the region being deformed, here region properties are remembered and precomputed;
|
| unsafe void | initFromPoints (MR.Const_VertCoords points, MR.Const_VertBitSet freeVerts, MR.EdgeWeights weights, MR.VertexMass? vmass=null, MR.RememberShape? rem=null) |
| | same as init() but uses the given points instead of ones passed to a constructor for weights computation and shape memory Generated from method MR.Laplacian.initFromPoints. Parameter vmass defaults to VertexMass.Unit. Parameter rem defaults to RememberShape.Yes.
|
| unsafe void | fixVertex (MR.VertId v, bool? smooth=null) |
| | notify Laplacian that given vertex has changed after init and must be fixed during apply;
|
| unsafe void | fixVertex (MR.VertId v, in MR.Vector3f fixedPos, bool? smooth=null) |
| | sets position of given vertex after init and it must be fixed during apply (THIS METHOD CHANGES THE MESH);
|
| unsafe void | multVertexWeight (MR.VertId v, double factor) |
| | multiplies vertex equation's weight on the given factor Generated from method MR.Laplacian.multVertexWeight.
|
| unsafe void | updateSolver () |
| | if you manually call this method after initialization and fixing vertices then next apply call will be much faster Generated from method MR.Laplacian.updateSolver.
|
| unsafe void | applyToVector (MR.VertCoords points) |
| | takes fixed vertex positions from the given points vector, computes and writes free vertex positions in the given points vector as well Generated from method MR.Laplacian.applyToVector.
|
| unsafe void | 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 Generated from method MR.Laplacian.apply.
|
| unsafe void | applyToScalar (MR.VertScalars scalarField) |
| | takes fixed vertex scalars from the given field, computes and writes free vertex scalars in the given field as well Generated from method MR.Laplacian.applyToScalar.
|
| unsafe void | addAttractor (MR.Laplacian.Const_Attractor a) |
| | adds one more attractor to the stored list Generated from method MR.Laplacian.addAttractor.
|
| unsafe void | removeAllAttractors () |
| | forgets all attractors added previously Generated from method MR.Laplacian.removeAllAttractors.
|
Laplacian to smoothly deform a region preserving mesh fine details. How to use:
- Initialize Laplacian for the region being deformed, here region properties are remembered.
- Change positions of some vertices within the region and call fixVertex for them.
- Optionally call updateSolver()
- Call apply() to change the remaining vertices within the region Then steps 1-4 or 2-4 can be repeated. Generated from class MR.Laplacian. This is the non-const half of the class.