Tiling solver
Project description
Tiling 3D
This package is for tiling cuboids with tiles/polyomino.
Installation
Use the package manager pip to install zdd_algorithms.
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 soltions:
plot_solution(solution)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
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.4.tar.gz
(6.2 kB
view hashes)