Ir para conteúdo
3DFinder
Iniciar sesión

Estás en 3DFinder

Buscamos en Thingiverse, MakerWorld y Printables al mismo tiempo para darte lo mejor de cada una.

Buscar más como este
Modelo 3D Puzzle Cube (Randomly Generated with Python) por keeeal en MakerWorld

Descripción

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!

 

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.

MakerWorld

Puzzle Cube (Randomly Generated with Python)

Publicado el 5 de ago. de 2023

9
Me gusta
14
Descargas
17
Colecciones
8
Impresiones
Categoría Puzzles
Etiquetas
puzzle cube customizable kids openscad parametric procedural python random toy
Licencia CC0
Ver en MakerWorld (abre en nueva pestaña)