Laplacian to smoothly deform a region preserving mesh fine details. How to use:
More...
|
| 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.Laplacian.RememberShape? rem=null) |
| | initialize Laplacian for the region being deformed, here region properties are remembered and precomputed;
|
| |
| 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 | 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 | apply () |
| | given fixed vertices, computes positions of remaining region vertices Generated from method MR.Laplacian.apply.
|
| |
| unsafe void | applyToScalar (MR.VertScalars scalarField) |
| | given a pre-resized scalar field with set values in fixed vertices, computes the values in free vertices Generated from method MR.Laplacian.applyToScalar.
|
| |
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.
◆ Laplacian() [1/3]
| unsafe MR.Laplacian.Laplacian |
( |
MR._ByValue_Laplacian | _other | ) |
|
|
inline |
Generated from constructor MR.Laplacian.Laplacian.
◆ Laplacian() [2/3]
| unsafe MR.Laplacian.Laplacian |
( |
MR.Mesh | mesh | ) |
|
|
inline |
Generated from constructor MR.Laplacian.Laplacian.
◆ Laplacian() [3/3]
| unsafe MR.Laplacian.Laplacian |
( |
MR.Const_MeshTopology | topology, |
|
|
MR.VertCoords | points ) |
|
inline |
Generated from constructor MR.Laplacian.Laplacian.
◆ apply()
| unsafe void MR.Laplacian.apply |
( |
| ) |
|
|
inline |
given fixed vertices, computes positions of remaining region vertices Generated from method MR.Laplacian.apply.
◆ applyToScalar()
given a pre-resized scalar field with set values in fixed vertices, computes the values in free vertices Generated from method MR.Laplacian.applyToScalar.
◆ fixVertex() [1/2]
| unsafe void MR.Laplacian.fixVertex |
( |
MR.VertId | v, |
|
|
bool? | smooth = null ) |
|
inline |
notify Laplacian that given vertex has changed after init and must be fixed during apply;
- Parameters
-
| smooth | whether to make the surface smooth in this vertex (sharp otherwise) Generated from method MR.Laplacian.fixVertex. Parameter smooth defaults to true. |
◆ fixVertex() [2/2]
sets position of given vertex after init and it must be fixed during apply (THIS METHOD CHANGES THE MESH);
- Parameters
-
| smooth | whether to make the surface smooth in this vertex (sharp otherwise) Generated from method MR.Laplacian.fixVertex. Parameter smooth defaults to true. |
◆ init()
| unsafe void MR.Laplacian.init |
( |
MR.Const_VertBitSet | freeVerts, |
|
|
MR.EdgeWeights | weights, |
|
|
MR.VertexMass? | vmass = null, |
|
|
MR.Laplacian.RememberShape? | rem = null ) |
|
inline |
initialize Laplacian for the region being deformed, here region properties are remembered and precomputed;
- Parameters
-
| freeVerts | must not include all vertices of a mesh connected component Generated from method MR.Laplacian.init. Parameter vmass defaults to VertexMass.Unit. Parameter rem defaults to Laplacian.RememberShape.Yes. |
◆ updateSolver()
| unsafe void MR.Laplacian.updateSolver |
( |
| ) |
|
|
inline |
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.
The documentation for this class was generated from the following file: