← f_ notebook · Mirrors · Space & Optics

f_poincare, live ​

Folds the Poincare disk by a regular {p,q} tiling group, drawing the settled point as a UV tile; mode b uses a wedge fold.

The cell below steps the NumPy mirror that f_poincare's tests are written against, in your browser. It is the NumPy mirror, not the Max patch, and it is not claimed to match the patch bit for bit.

f_poincare · NumPy mirror (Pyodide) · not the Max patch
Downloads about 15 MB the first time (Python and NumPy).
  • mode picks the fold: a inverts the whole tile in the p edge circles, b reflects into a wedge first.
  • p sets the number of sides of each tile (its clamped rounded value is what folds).
  • q sets how many tiles meet at each vertex; the mirror clamps invalid pairs to the nearest hyperbolic one.
  • tile scale sets how much of each settled tile the camera shows (smaller tiles in, more repeats).
  • iters is how many fold steps run per frame; low values leave the fold unfinished.
  • rim fade darkens the outer ring of the disk.
  • camera x moves the viewing point sideways inside the disk, warping and unrolling the tiling.
  • camera y moves the viewing point vertically inside the disk.

reference doc · idea note · patcher · poincare_mirror.py

← MobiusSIRDS →