Ir para conteúdo
3DFinder
Entrar

Você está no 3DFinder

Buscamos em Thingiverse, MakerWorld e Printables ao mesmo tempo para te dar o melhor de cada uma.

Buscar mais como este
Modelo 3D Puzzle Cube (Randomly Generated with Python) por Keeeal no Thingiverse

Descrição

I wrote this code as an exercise in procedurally generating 3D-printable objects.

The algorithm creates six pieces that fit together to form a cube. Since the puzzle is randomly generated, even the puzzle’s creator can have the satisfaction of solving it for themselves!

For a full description of the algorithm, see the blog post.

Requirements

First install SolidPython and Numpy:

``` pip install solidpython numpy ```

Usage

To run the script:

``` python puzzle_cube.py [--size SIZE] [--shape X Y Z] [--stl] ```

Optional arguments:

  • size — The size-length of a single cell in the puzzle. Default: 10 mm.
  • shape — The dimensions of the puzzle. Default: (4, 4, 4)
  • stl — Attempt to generate STL rather than SCAD files. (Requires OpenSCAD)

For example:

``` python puzzle_cube.py --size 10 --shape 4 4 4 --stl ```

A puzzle produced with these settings is provided.

Enjoy :)

Contributing

To contribute, see the Github repo.

Thingiverse

Puzzle Cube (Randomly Generated with Python)

16
Curtidas
0
Downloads
14
Coleções
Tags
3D puzzle cube puzzle customizable generative github kids openscad open source parametric procedural puzzle python random toy
Licença Creative Commons - Attribution
Arquivos (6)
piece_0.stl 1.7 MB
piece_1.stl 1.9 MB
piece_2.stl 2.5 MB
piece_3.stl 2.7 MB
piece_4.stl 1.5 MB
piece_5.stl 1.5 MB
Ver no Thingiverse (abre em nova aba)