cotangent_laplacian_intrinsic
cotangent_laplacian_intrinsic(l_sq, F, n=None)
Builds the (pos. def.) cotangent Laplacian for a triangle mesh.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
l_sq |
(m,3) numpy array
|
squared halfedge lengths as computed by halfedge_lengths_squared |
required |
F |
(m,3) numpy int array
|
face index list of a triangle mesh |
required |
n |
int, optional (default None)
|
number of vertices in the mesh. If absent, will try to infer from F. |
None
|
Returns:
Name | Type | Description |
---|---|---|
L |
(n,n) scipy csr_matrix
|
cotangent Laplacian |
Examples:
# Mesh in V,F
from gpytoolbox import halfedge_lengths_squared, cotangent_laplacian_intrinsic
l = halfedge_lengths_squared(V,F)
L = cotangent_laplacian_intrinsic(l_sq,F,n=V.shape[0])
Source code in src/gpytoolbox/cotangent_laplacian_intrinsic.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|