Skip to content

Planar domains API

pyvoro2.planar.domains

Planar domain specifications for 2D tessellations.

Box dataclass

Axis-aligned non-periodic planar box.

from_points(points, padding=2.0) classmethod

Create a bounding box that encloses planar points.

RectangularCell dataclass

Axis-aligned planar cell with optional x/y periodicity.

This is the honest first public 2D domain scope for pyvoro2.planar. It intentionally does not cover non-orthogonal periodic cells.

lattice_vectors property

Return lattice vectors (a, b) in Cartesian coordinates.

remap_cart(points, *, return_shifts=False, eps=None)

Remap Cartesian points into the primary rectangular domain.

:::