prototiles
pleat.prototiles ¶
Define tile prototypes with angles, edge lengths, and vertex positions.
ProtoTile ¶
Abstract base class for tile prototypes that can produce half-edge graphs.
PolygonalProtoTile ¶
PolygonalProtoTile(
in_angles: list[float],
edge_lengths: list[float],
edge_labels: list | None = None,
vertex_labels: list | None = None,
face_label: object = None,
edge_instructions: dict | None = None,
)
Bases: ProtoTile
A tile defined by interior angles, edge lengths, and optional labels.
Source code in pleat/prototiles.py
make_graph ¶
Build a half-edge graph for this tile and return it with an edge label dict.
Source code in pleat/prototiles.py
attach_instruction ¶
Return a glue instruction that attaches this tile at the given edge label.
RegularProtoTile ¶
Bases: PolygonalProtoTile
A regular polygon tile with uniform angles and edge lengths, supporting any geometry.
Source code in pleat/prototiles.py
EuclideanProtoTile ¶
Bases: PolygonalProtoTile
A Euclidean tile defined by explicit 2D vertex positions.
Source code in pleat/prototiles.py
RegularEuclideanTile ¶
Bases: EuclideanProtoTile
A regular n-gon in Euclidean geometry with unit edge length.
Source code in pleat/prototiles.py
RhombusTile ¶
Bases: EuclideanProtoTile
A rhombus tile with a given acute angle alpha (default pi/3).
Source code in pleat/prototiles.py
complete_vertex_with_rhombus ¶
Fill the remaining angle at a border vertex by gluing in a rhombus tile.