tiling3d


Nametiling3d JSON
Version 0.0.7 PyPI version JSON
download
home_pagehttps://github.com/Thilo-J/Tiling3D
SummaryTiling solver
upload_time2023-10-30 22:51:45
maintainer
docs_urlNone
authorThilo Langensteiner
requires_python
license
keywords python ubongo tiling 3d polyomino
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Tiling 3D

This package is for tiling cuboids with tiles/polyominos.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install Tiling 3D.

```bash
pip install tiling3d
```

## Usage

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

```python
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)


```

<p align="center">
  <img src="https://raw.githubusercontent.com/Thilo-J/Tiling3D/900ac7e43571cef5a449b4a604ef13a8b26224c9/tiling_solution.png" 
  alt="tiling_solutions"/>
</p>

## Contributing

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

## License

[MIT](https://choosealicense.com/licenses/mit/)
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Thilo-J/Tiling3D",
    "name": "tiling3d",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,ubongo,tiling,3d,polyomino",
    "author": "Thilo Langensteiner",
    "author_email": "<thilo.j.la@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/e3/cf/5deeec6691608647f1b06f0962fe5f2fa8b28a22e3fa6054faf11df20a9c/tiling3d-0.0.7.tar.gz",
    "platform": null,
    "description": "# Tiling 3D\n\nThis package is for tiling cuboids with tiles/polyominos.\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install Tiling 3D.\n\n```bash\npip install tiling3d\n```\n\n## Usage\n\nCreate a cuboid with some parts filled in. The create tiles or use tiles from tiles.py.\n\n```python\nimport numpy as np\nfrom tiling3d.tiling_objects import Cuboid, TilingProblem\nfrom tiling3d.tiles import get_tiles_by_name \nfrom tiling3d.tiling_solver import get_all_solutions\nfrom tiling3d.visualization import plot_solution\n\nboard = Cuboid(\"Test\", np.array([\n    [\n        [0,0,0],\n        [0,0,0],\n        [0,1,0]\n    ],\n    [\n        [0,0,0],\n        [0,0,0],\n        [0,1,0]\n    ]\n]))\ntiles = get_tiles_by_name([\"t16\", \"t8\", \"t7\", \"t10\"])\n\nproblem = TilingProblem(tiles, board)\n\nsolutions = get_all_solutions(problem)\n\nfor solution in solutions:\n    plot_solution(solution)\n\n\n```\n\n<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/Thilo-J/Tiling3D/900ac7e43571cef5a449b4a604ef13a8b26224c9/tiling_solution.png\" \n  alt=\"tiling_solutions\"/>\n</p>\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)",
    "bugtrack_url": null,
    "license": "",
    "summary": "Tiling solver",
    "version": "0.0.7",
    "project_urls": {
        "GitHub": "https://github.com/Thilo-J/Tiling3D",
        "Homepage": "https://github.com/Thilo-J/Tiling3D"
    },
    "split_keywords": [
        "python",
        "ubongo",
        "tiling",
        "3d",
        "polyomino"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e3cf5deeec6691608647f1b06f0962fe5f2fa8b28a22e3fa6054faf11df20a9c",
                "md5": "a3b282ea8ca21cd5f7b1ca8fdd5fd9fb",
                "sha256": "c4d2b6804d73f032e8ece50d2372bc46f0b26836e945e0f4baee32a88eebaade"
            },
            "downloads": -1,
            "filename": "tiling3d-0.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "a3b282ea8ca21cd5f7b1ca8fdd5fd9fb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6172,
            "upload_time": "2023-10-30T22:51:45",
            "upload_time_iso_8601": "2023-10-30T22:51:45.371250Z",
            "url": "https://files.pythonhosted.org/packages/e3/cf/5deeec6691608647f1b06f0962fe5f2fa8b28a22e3fa6054faf11df20a9c/tiling3d-0.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-30 22:51:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Thilo-J",
    "github_project": "Tiling3D",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "tiling3d"
}
        
Elapsed time: 3.63673s