Skip to main content

An implementation of all 11 regular and Archimedean tilings

Project description

architile : create lattices with all 11 regular or uniform tilings

A small python library to generate 2D lattices based on repeating any of the 11 regular or uniform tilings. Uniform tilings are arrangements of regular polygons that cover a plane without gaps or overlaps, where each vertex has the same arrangement of polygons.

Features

  • Get nodes and connectivity for any of the 11 regular or uniform tilings
  • Tile into any rectangular area with options for the boundary (cut, cut exactly to bounding box, or fill with partial tiles along the boundary)
  • Rotate the tiling pattern by any angle

All 11 regular or uniform tilings

architile preview

Getting started

from architile import tiling, tile_into_rectangle

# Create a SnubSquare tiling
tile = tiling.SnubSquare(a=1.0)

# Tile it into a rectangle of width 5 and height 3 (origin at (0,0))
nodes, edges = tile_into_rectangle((0.0, 0.0, 5.0, 3.0), tile)

# Tile it into a rectangle and add edges along the boundary of the rectangle
# tiling with partial tiles along the bounding box
nodes, edges = tile_into_rectangle((0.0, 0.0, 5.0, 3.0), tile, boundary="cut_fill")

# tile it into a rectangle but put the pattern at an angle of 15 degrees
nodes, edges = tile_into_rectangle((0.0, 0.0, 5.0, 3.0), tile, theta=np.pi/12)

Disclaimer

This is a research project, and the code is provided "as is" without warranty of any kind. Use at your own risk.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

architile-0.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

architile-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file architile-0.1.0.tar.gz.

File metadata

  • Download URL: architile-0.1.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.11

File hashes

Hashes for architile-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6270c87519490c39b8deb9a622cf119ad9fdd1dab294466cbcc2938eade817e3
MD5 36bd8f9fcb28e2d569bd6f5057cd1f04
BLAKE2b-256 a303f8d90df23c3589fe843c2f618d237473fb68c139ed137f8b581e6a03a10e

See more details on using hashes here.

File details

Details for the file architile-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: architile-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.11

File hashes

Hashes for architile-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f534eb5de3fe8e5a526022bbf634193ab32eb7f1f5e6ed2772e3cdaf8e69190
MD5 b15f7bafb21c1f039d36a0e708132f1a
BLAKE2b-256 c20f40f22a3d4de7958936b515b1e07a8e29245a2a57ae049e4b7f85a975f2df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page