Mesh and Surface#

Mesh(vertices[, faces, space, geometry, ...])

Triangular mesh topology represented by arrays of vertices and faces.

Overlay(data[, labels, metadata])

1D mesh overlay class defining an array with data frames.

Spherical Mesh Utilities#

sphere.cartesian_to_spherical(points)

Convert a set of cartesian points to spherical coordinates (phi, theta) around the origin.

sphere.spherical_to_cartesian(points)

Convert a set of spherical coordinates (phi, theta) to cartesian coordinates around the origin.

sphere.mesh_is_sphere(mesh)

Test whether mesh repesents a sphere.

sphere.require_sphere(mesh)

Return an exception if the mesh does not qualify as a valid sphere.

Spherical Mapping and Resampling#

sphere.SphericalMapBarycentric(sphere[, shape])

A barycentric interpolator to map spherical surface overlays into a 2D image grid with (phi, theta) units.

sphere.SphericalMapNearest(sphere[, shape])

A nearest-neighbor to map spherical surface overlays into a 2D image grid with (phi, theta) units.

sphere.SphericalResamplingBarycentric(...)

Barycentric map to transfer vertex information between two aligned spheres.

sphere.SphericalResamplingNearest(source, target)

Nearest-neighbor map to transfer vertex information between two aligned spheres.