Skip to main content

Tiling solver

Project description

Tiling 3D

This package is for tiling cuboids with tiles/polyominos.

Installation

Use the package manager pip to install Tiling 3D.

pip install tiling3d

Usage

Create a cuboid with some parts filled in. The create tiles or use tiles from tiles.py.

import numpy as np
from tiling3d.tiling_objects import Cuboid, TilingProblem
from tiling3d.tiles import get_tiles_by_name 
from tiling3d.tiling_solver import get_all_solutions
from tiling3d.visualization import plot_solution

board = Cuboid("Test", np.array([
    [
        [0,0,0],
        [0,0,0],
        [0,1,0]
    ],
    [
        [0,0,0],
        [0,0,0],
        [0,1,0]
    ]
]))
tiles = get_tiles_by_name(["t16", "t8", "t7", "t10"])

problem = TilingProblem(tiles, board)

solutions = get_all_solutions(problem)

for solution in solutions:
    plot_solution(solution)

tiling_solutions

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

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

tiling3d-0.0.7.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file tiling3d-0.0.7.tar.gz.

File metadata

  • Download URL: tiling3d-0.0.7.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for tiling3d-0.0.7.tar.gz
Algorithm Hash digest
SHA256 c4d2b6804d73f032e8ece50d2372bc46f0b26836e945e0f4baee32a88eebaade
MD5 a3b282ea8ca21cd5f7b1ca8fdd5fd9fb
BLAKE2b-256 e3cf5deeec6691608647f1b06f0962fe5f2fa8b28a22e3fa6054faf11df20a9c

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