Additional Inherited Members | |
| Protected Member Functions inherited from meshlib.CppObject | |
| CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner) | |
Laplacian to smoothly deform a region preserving mesh fine details. How to use:
Instances created here own their C++ objects, see CppObject.
| meshlib.Laplacian.Laplacian | ( | java.lang.foreign.MemorySegment | ptr, |
| boolean | owned, | ||
| java.lang.Object | owner ) |
Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.
| meshlib.Laplacian.Laplacian | ( | meshlib.Laplacian | _other | ) |
Generated from constructor MR::Laplacian::Laplacian. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
Calls MR_Laplacian_ConstructFromAnother().
| meshlib.Laplacian.Laplacian | ( | meshlib.Mesh | mesh | ) |
Generated from constructor MR::Laplacian::Laplacian. The reference to the parameter mesh might be preserved in the constructed object.
Calls MR_Laplacian_Construct().
| meshlib.Laplacian.Laplacian | ( | meshlib.MeshTopology | topology, |
| meshlib.VertCoords | points ) |
Generated from constructor MR::Laplacian::Laplacian. The reference to the parameter topology might be preserved in the constructed object. The reference to the parameter points might be preserved in the constructed object.
Calls MR_Laplacian_Construct_topology().
| void meshlib.Laplacian.addAttractor | ( | meshlib.Laplacian_Attractor | a | ) |
adds one more attractor to the stored list Generated from method MR::Laplacian::addAttractor.
Calls MR_Laplacian_addAttractor().
| void meshlib.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 Generated from method MR::Laplacian::apply.
Calls MR_Laplacian_apply().
| void meshlib.Laplacian.applyToScalar | ( | meshlib.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.
Calls MR_Laplacian_applyToScalar().
| void meshlib.Laplacian.applyToVector | ( | meshlib.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.
Calls MR_Laplacian_applyToVector().
| meshlib.VertBitSet meshlib.Laplacian.firstLayerFixedVerts | ( | ) |
return fixed vertices from the first layer around free vertices Generated from method MR::Laplacian::firstLayerFixedVerts.
Calls MR_Laplacian_firstLayerFixedVerts().
| void meshlib.Laplacian.fixVertex | ( | meshlib.VertId | v, |
| java.lang.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) Generated from method MR::Laplacian::fixVertex. |
Calls MR_Laplacian_fixVertex().
| void meshlib.Laplacian.fixVertex | ( | meshlib.VertId | v, |
| meshlib.Vector3f | fixedPos, | ||
| java.lang.Boolean | smooth ) |
sets position of given vertex after init and it must be fixed during apply (THIS METHOD CHANGES THE MESH);
| smooth | whether to make the surface smooth in this vertex (sharp otherwise) Generated from method MR::Laplacian::fixVertex. |
Calls MR_Laplacian_fixVertex_pos().
| meshlib.VertBitSet meshlib.Laplacian.freeVerts | ( | ) |
return currently free vertices Generated from method MR::Laplacian::freeVerts.
Calls MR_Laplacian_freeVerts().
| void meshlib.Laplacian.init | ( | meshlib.VertBitSet | freeVerts, |
| meshlib.EdgeWeights | weights, | ||
| meshlib.VertexMass | vmass, | ||
| meshlib.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; Generated from method MR::Laplacian::init. |
Calls MR_Laplacian_init().
| void meshlib.Laplacian.initFromPoints | ( | meshlib.VertCoords | points, |
| meshlib.VertBitSet | freeVerts, | ||
| meshlib.EdgeWeights | weights, | ||
| meshlib.VertexMass | vmass, | ||
| meshlib.RememberShape | rem ) |
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.
Calls MR_Laplacian_initFromPoints().
| void meshlib.Laplacian.multVertexWeight | ( | meshlib.VertId | v, |
| double | factor ) |
multiplies vertex equation's weight on the given factor Generated from method MR::Laplacian::multVertexWeight.
Calls MR_Laplacian_multVertexWeight().
| meshlib.VertCoords meshlib.Laplacian.points | ( | ) |
return the vector of coordinates for which Laplacian was constructed Generated from method MR::Laplacian::points.
Calls MR_Laplacian_points().
| meshlib.VertBitSet meshlib.Laplacian.region | ( | ) |
return all initially free vertices and the first layer of vertices around them Generated from method MR::Laplacian::region.
Calls MR_Laplacian_region().
| void meshlib.Laplacian.removeAllAttractors | ( | ) |
forgets all attractors added previously Generated from method MR::Laplacian::removeAllAttractors.
Calls MR_Laplacian_removeAllAttractors().
| meshlib.MeshTopology meshlib.Laplacian.topology | ( | ) |
return the topology for which Laplacian was constructed Generated from method MR::Laplacian::topology.
Calls MR_Laplacian_topology().
| void meshlib.Laplacian.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.
Calls MR_Laplacian_updateSolver().