Skip to content

Polyplot

Polyplot is a Three.js (React Three Fiber) anywidget for 2.5D polygon stacks: it preprocesses stacked 2D outlines per cell_id and ZIndex, builds triangulated meshes, exports GLB tiles, and serves them to a WebGL viewer in the browser (marimo, Jupyter, and similar).

  • Get started – install, sample data, and the quickstart notebook.
  • User guidemeshify, plot, and caching.
  • PyPI / sourceuv sync from the repository root; API docstrings in polyplot/.

At a glance

Piece Role
meshify(gdf, ...) Preprocess, tile, and write tiles.json and GLB shards under a content-hashed directory (default .polyplot/)
plot(gdf, ...) Ensure tiles exist, run a local tile server, and return a marimo anywidget WebGL view

The viewer controls wireframe, opacity, and background in the UI; they are not set from Python.