slam.mapping

Functions

disk_conformal_mapping(mesh[, lap_type, …])

Computes comformal mapping of a mesh to a disk, see the following references: Ulrich Pinkall and Konrad Polthier, “Computing Discrete Minimal Surfaces and Their Conjugates,” Experimental Mathematics, 1993, 1–33.

inverse_stereo_projection(plane_mesh[, h, …])

Computes the inverse stereograhic projection from an horizontal plane onto the unit sphere (center = 0, radius = 1) :param plane_mesh: trimesh planar mesh to be inverse projected onto the sphere :param h: 3rd coordinate of the projection plane :param invert: Boolean value to invert input mesh faces orientation upwards to be consistent with stereo_projection :return: trimesh unit sphere from inverse projected plane_mesh

moebius_transformation(a, b, c, d, plane_mesh)

see https://en.wikipedia.org/wiki/M%C3%B6bius_transformation :param a:Complex :param b:Complex :param c:Complex :param d:Complex :param plane_mesh: trimesh mesh :return:

spherical_mapping(mesh[, mapping_type, dt, …])

Estimate a mapping between a 3d watertight triangular mesh and a sphere

stereo_projection(sphere_mesh[, h, invert])

Computes the stereographic projection from the unit sphere (center = 0, radius = 1) onto the horizontal plane which 3rd coordinate is h of the vertices given :param sphere_mesh: trimesh spherical mesh to be projected onto the plane :param h: 3rd coordinate of the projection plane :param invert: Boolean value to invert output mesh faces orientation upwards :return: trimesh planar mesh, 3rd coordinate is equal to h