Slicer Discord
Puzzle Cube (Randomly Generated with Python) – Modelo 3D imprimible de Thingiverse Thingiverse

Puzzle Cube (Randomly Generated with Python)

por Keeeal
14 Descargas
16 Likes
0 Makes
Ver Modelo
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
Fuente
Thingiverse
Lo que necesitas para imprimir: Principiante Baja confianza
¿Por qué?
diseño print-in-place
Print-in-place
Soportes 1/3
Ensamblaje 0/3
Ajustes 1/3
Tamaño de cama 0/3
Postproceso 0/3
Impresora
FDM / FFF
Formato de archivo
STL
Material
Software
Cura, PrusaSlicer o similar
Mismo diseñador, más plataformas

Keeeal también publica en

1 modelos adicionales en 1 plataformas más

Verificado por coincidencia de títulos de modelos entre plataformas.
Aún no hay valoraciones
Aún no hay comentarios – ¡sé el primero!

Modelos similares

4 Sugerencias
Feed Blog Slicer Calculadora Búsqueda por imagen Enviar Contacto Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Añadir a colección