Skip to content

cotangent_laplacian

cotangent_laplacian(V, F)

Builds the (pos. def.) cotangent Laplacian for a triangle mesh.

Parameters:

Name Type Description Default
V (n,d) numpy array

vertex list of a triangle mesh

required
F (m,3) numpy int array

face index list of a triangle mesh

required

Returns:

Name Type Description
L (n,n) scipy csr_matrix

cotangent Laplacian

Examples:

TODO

Source code in src/gpytoolbox/cotangent_laplacian.py
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
def cotangent_laplacian(V,F):
    """Builds the (pos. def.) cotangent Laplacian for a triangle mesh.

    Parameters
    ----------
    V : (n,d) numpy array
        vertex list of a triangle mesh
    F : (m,3) numpy int array
        face index list of a triangle mesh

    Returns
    -------
    L : (n,n) scipy csr_matrix
        cotangent Laplacian

    Examples
    --------
    TODO

    """

    l_sq = halfedge_lengths_squared(V,F)
    return cotangent_laplacian_intrinsic(l_sq,F,n=V.shape[0])