slam.remeshingΒΆ

Functions

normalize_sphere_coords(mesh)

center and normalize the supposed spherical coordinates in mesh.vertices Also check that they are spherical by assessing the min and max of the norm of the coordinates of the vertices.

spherical_interpolation_nearest_neighbor(...)

Nearest neighbor interpolation between two spheres For each vertex of target_spherical_mesh, find the nearest one in source_spherical_mesh :param source_spherical_mesh: spherical Trimesh object :param target_spherical_mesh: spherical Trimesh object :param normalize_spheres: check that the two spheres are centered at (0,0,0) with radius=1 :return: index: index of corresponding vertex in the target mesh

texture_spherical_interpolation_nearest_neighbor(...)

Nearest neighbor interpolation between two spheres Use the vertex-level correspondence obtained with spherical_interpolation_nearest_neighbor to select corresponding values in the texture_to_interpolate.