3D Puzzle Generator

Transform any geometry into an interactive object

This generator takes in a geometry file and splits it into a given amount of 3D puzzle pieces. It uses a 3D voronoi fracture with a perlin noise to mimic the effect of a geometry shattering. Each of the pieces fits together perfectly to form the original geometry.

A second part of the algorithm finds the optimal placement for the magnets that hold the puzzle together. This is done by taking one of the facets without perlin noise applied and calculating a straight skeleton. By sampling points on this straight skeleton in relation to the edge of the polygon the point furthest from edges is selected for magnet placement and projected to the surface with noise applied.