Customizable Puzzle Cube Generator

Copyright Claim

Customizable Puzzle Cube Generator

Boost
31
67
1
GIF
GIF
GIF

Print Profile(2)

All
A1

3x3x3 Cube Puzzle multicolored 5 pieces
3x3x3 Cube Puzzle multicolored 5 pieces
Designer
1.1 h
1 plate

4x4x4 Cube Puzzle multicolored 7 pieces
4x4x4 Cube Puzzle multicolored 7 pieces
Designer
2 h
2 plates

Boost
31
67
1
0
48
10
Released

Description

Introducing the Procedural Cube Puzzle Generator—an innovative OpenSCAD model designed by majorfrank that allows you to create a virtually infinite number of customizable cube puzzles.

  • Infinite Variability: Generate countless unique cube puzzle designs, each one different from the last.
  • Fully Customizable: Adjust the size, number of cubes, and complexity to suit your preferences.
  • User-Friendly: Designed for easy customization in Parametric Model Maker with simple parameter adjustments.

Parameters

  • Number of Cubes: Configure the puzzle dimensions along the X, Y, and Z axes. Be warned a 3x3x3 puzzle can already be challenging
  • Max Cubes Per Piece: Limit the number of cubes in one piece to increase or decrease difficulty.
  • Custom Seed: Generate reproducible results with a custom seed value or let the system randomize it for endless variations.
  • Explode View: Experiment with an exploded view effect for a unique visualization and hint how to assemble your cube.

 

How It Works

  1. Initialization: Define the size of the cube grid and the maximum number of cubes in each piece.
  2. Flood Fill Algorithm: The algorithm starts with the cube at the bottom left point in the cube grid and uses a flood fill method to create a piece. A random neighbor of the current cube is added to the current piece. This continues until there are no neighbors or the Max Cubes Per Piece limit has been reached. The flood fill starts over with the next piece where the new starting point is the next available cube that is not part of a piece.

The randomness ensures that no two puzzles are ever the same, and the number of pieces for each puzzle can vary providing an infinite number of combinations and challenges

Comment & Rating (1)

Please fill in your opinion
(0/5000)

1. You might want the model to shave a tenth of a millimeter for space tolerance. If pieces form a "C" or other interlocking formation, they can get tight. (E.G. Seed # 762605) 2. Saving the model when you have "0" for the seed causes a random model to download - not the model you see on the board in the interface ... that's probably a difficulty with OpenSCAD software. So it's worth noting in your instructions, to turn on the number, then to type it in manually (or maybe add a checkbox to use the LAST seed in case someone forgets to view the seed number in the generated model). Other than that, this is pretty clever. I like it!
(Edited)
0
Reply
No more