new TrivialConnections(geometry)
This class implements the trivial connections algorithm to compute a smooth
1-form vector fields on a surface mesh.
Parameters:
Name | Type | Description |
---|---|---|
geometry |
module:Core.Geometry | The input geometry of the mesh this class acts on. |
Properties:
Name | Type | Description |
---|---|---|
vertexIndex |
Object | A dictionary mapping each vertex of the input mesh to a unique index. |
edgeIndex |
Object | A dictionary mapping each edge of the input mesh to a unique index. |
bases |
Array.<module:LinearAlgebra.DenseMatrix> | The harmonic bases [γ1, γ2 ... γn] of the input mesh. |
P |
module:LinearAlgebra.SparseMatrix | The period matrix of the input mesh. |
A |
module:LinearAlgebra.SparseMatrix | The 0-form laplace matrix d0^T star1 d0 of the input mesh. |
hodge1 |
module:LinearAlgebra.SparseMatrix | The hodge star 1-form matrix of the input mesh. |
d0 |
module:LinearAlgebra.SparseMatrix | The exterior derivaitve 0-form matrix of the input mesh. |
Methods
-
computeConnections(singularity)
-
Computes the dual 1-form connections φ = 𝛿β + γ.
Parameters:
Name Type Description singularity
Object A dictionary mapping each vertex of the input mesh
to either 0 or 1, where 1 indicates that the vertex is a singularity and 0
indicates that it is not.Returns: