MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstLaplacian Class Reference
Inheritance diagram for mrmeshpy.ConstLaplacian:

Classes

class  Attractor
class  ConstAttractor

Public Member Functions

 __init__ (self, *args, **kwargs)
ConstVertBitSet firstLayerFixedVerts (self)
ConstVertBitSet freeVerts (self)
VertCoords points (self)
ConstVertBitSet region (self)
ConstMeshTopology topology (self)

Detailed Description

Generated from:  MR::Laplacian

Laplacian to smoothly deform a region preserving mesh fine details.
How to use:
1. Initialize Laplacian for the region being deformed, here region properties are remembered.
2. Change positions of some vertices within the region and call fixVertex for them.
3. Optionally call updateSolver()
4. Call apply() to change the remaining vertices within the region
Then steps 1-4 or 2-4 can be repeated.
\\snippet cpp-samples/LaplacianDeformation.cpp 0

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstLaplacian.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstLaplacian, mesh: meshlib.mrmeshpy.Mesh) -> None

2. __init__(self: meshlib.mrmeshpy.ConstLaplacian, topology: meshlib.mrmeshpy.ConstMeshTopology, points: meshlib.mrmeshpy.VertCoords) -> None

Member Function Documentation

◆ firstLayerFixedVerts()

ConstVertBitSet mrmeshpy.ConstLaplacian.firstLayerFixedVerts ( self)
return fixed vertices from the first layer around free vertices

◆ freeVerts()

ConstVertBitSet mrmeshpy.ConstLaplacian.freeVerts ( self)
return currently free vertices

◆ points()

VertCoords mrmeshpy.ConstLaplacian.points ( self)
return the vector of coordinates for which Laplacian was constructed

◆ region()

ConstVertBitSet mrmeshpy.ConstLaplacian.region ( self)
return all initially free vertices and the first layer of vertices around them

◆ topology()

ConstMeshTopology mrmeshpy.ConstLaplacian.topology ( self)
return the topology for which Laplacian was constructed

The documentation for this class was generated from the following file: