Slicer Discord
Puzzle Cube (Randomly Generated with Python) – 3D-printbaar model van Thingiverse Thingiverse

Puzzle Cube (Randomly Generated with Python)

door Keeeal
14 Downloads
16 Likes
0 Makes
Model downloaden
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](https://jameskeal.com.au/procedurally-generating-puzzles-with-openscad-and-python).

### Requirements

First install [SolidPython](https://github.com/SolidCode/SolidPython) and [Numpy](https://numpy.org/):

```
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](https://www.openscad.org/))

For example:

```
pyt
Bron
Thingiverse
Wat je nodig hebt om te printen: Beginner Lage betrouwbaarheid
Waarom?
print-in-place ontwerp
Print-in-place
Supports 1/3
Montage 0/3
Instellingen 1/3
Bedgrootte 0/3
Nabewerking 0/3
Printer
FDM / FFF
Bestandsformaat
STL
Materiaal
Software
Cura, PrusaSlicer of vergelijkbaar
Zelfde ontwerper, meer platforms

Keeeal publiceert ook op

1 extra modellen op 1 andere platforms

Geverifieerd door overeenkomende modeltitels op platforms.
Nog geen beoordelingen
Nog geen reacties – wees de eerste!

Vergelijkbare modellen

4 Suggesties
Feed Blog Slicer Kostenrekenmachine Zoeken op afbeelding Indienen Kontakt Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Toevoegen aan collectie