Skip to content

Index

pleat.geometries

Geometry backends for Euclidean, hyperbolic, and spherical tilings.

EuclideanGeometry

Bases: Geometry

Flat 2D Euclidean geometry with standard vector operations.

PoincareDiskModel

Bases: Geometry

Hyperbolic geometry using the Poincare disk model with complex coordinates.

SphereModel

Bases: Geometry

Spherical geometry with points on the unit 2-sphere in R^3.

stereographic_projection classmethod

stereographic_projection(pts)

Apply stereographic projection with pole at (-1, 0, 0).

Source code in pleat/geometries/spherical.py
@classmethod
def stereographic_projection(cls, pts):
    """Apply stereographic projection with pole at (-1, 0, 0)."""
    return 2 * pts[..., 1:] / (pts[..., :1] + 1)