slam.differential_geometry

Functions

compute_mesh_laplacian(mesh[, weights, ...])

compute laplacian of a mesh see compute_mesh_weight for details :param mesh: :param weights: :param fem_b: :param lap_type: :return:

compute_mesh_weights(mesh[, weight_type, ...])

compute a weight matrix W is sparse weight matrix and W(i,j) = 0 is vertex i and vertex j are not connected in the mesh.

cross_product(vec1, vec2)

depth_potential_function(mesh, curvature, alphas)

compute the depth potential function of a mesh as desribed in Boucher, M., Whitesides, S., & Evans, A.

gradient(mesh, texture_array)

Compute gradient on a triangular mesh with a scalar function.

gradient_fast(mesh, texture_array)

Compute gradient on a triangular mesh with a scalar function.

laplacian_mesh_smoothing(mesh, nb_iter, dt)

smoothing the mesh by solving the heat equation using fem Laplacian ADD REF :param mesh: :param nb_iter: :param dt: :return:

laplacian_smoothing(texture_data, lap, ...)

sub-function for smoothing using fem Laplacian :param texture_data: :param lap: :param lap_b: :param nb_iter: :param dt: :return:

laplacian_texture_smoothing(mesh, tex, ...)

smoothing the texture by solving the heat equation using fem Laplacian :param mesh: :param tex: :param nb_iter: :param dt: :return:

mesh_laplacian_eigenvectors(mesh[, nb_vectors])

compute the nb_vectors first non-null eigenvectors of the graph Laplacian

norm_gradient(mesh, texture_array)

Compute the norm of a vertex Gradient on vertex first version author: Guillaume Vicaigne (Internship 2018) :param mesh: Triangular mesh :param texture_array: Scalar function on Vertices, numpy array :return: Gradient's Norm

triangle_gradient(mesh, texture_array)

Compute gradient on a triangular mesh with a scalar function.