Slicer Discord
Puzzle Cube (Randomly Generated with Python) – Modello 3D stampabile da Thingiverse Thingiverse

Puzzle Cube (Randomly Generated with Python)

di Keeeal
14 Download
16 Likes
0 Makes
Vai al Modello
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
Fonte
Thingiverse
Cosa serve per stampare: Principiante Bassa affidabilità
Perché?
design print-in-place
Print-in-place
Supporti 1/3
Assemblaggio 0/3
Impostazioni 1/3
Dimensioni piano 0/3
Post-lavorazione 0/3
Stampante
FDM / FFF
Formato file
STL
Materiale
Software
Cura, PrusaSlicer o simile
Stesso designer, più piattaforme

Keeeal pubblica anche su

1 modelli aggiuntivi su altre 1 piattaforme

Verificato dalla corrispondenza dei titoli dei modelli tra le piattaforme.
Ancora nessuna valutazione
Ancora nessun commento – sii il primo!

Modelli simili

4 Suggerimenti
Feed Blog Slicer Calcolatore Ricerca per immagine Invia Contatto Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Aggiungi alla collezione