Slicer Discord
Puzzle Cube (Randomly Generated with Python) – 3D-Druckmodell von Thingiverse Thingiverse

Puzzle Cube (Randomly Generated with Python)

von Keeeal
14 Downloads
16 Likes
0 Makes
Zum Modell
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
Quelle
Thingiverse
Was du zum Drucken brauchst: Anfänger Niedrige Konfidenz
Warum?
Print-in-place-Design
Print-in-place
Supports 1/3
Zusammenbau 0/3
Einstellungen 1/3
Druckbett 0/3
Nachbearbeitung 0/3
Drucker
FDM / FFF
Dateiformat
STL
Material
Software
Cura, PrusaSlicer o. Ä.
Gleicher Designer, mehr Plattformen

Keeeal veröffentlicht auch auf

1 zusätzliche Modelle auf 1 weiteren Plattformen

Verifiziert durch übereinstimmende Modelltitel über Plattformen hinweg.
Noch keine Bewertungen
Noch keine Kommentare – sei der Erste!

Ähnliche Modelle

4 Vorschläge
Feed Blog Slicer Kostenrechner Bildersuche Einreichen Kontakt Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Zur Sammlung hinzufügen