Skip to content

Voronoi Fragmentation Generator (Shattered Geometry)

source

Description

An algorithmic tool for breaking down any solid object into unique, interlocking shards using 3D Voronoi partitioning. This model showcases a "shattered" effect where a base volume is intersected with randomly generated Voronoi cells. It is perfect for procedural destruction effects, architectural puzzles, or artistic "exploded" views in web applications.

Key Features:

  1. Randomized Sharding: Uses a point-cloud seed to generate unique fracture patterns every time the script runs.
  2. Boolean Intersections: Leverages CadQuery’s robust kernel to create clean, sharp edges between shards.
  3. Individual Shard Control: Every fragment is an independent solid, allowing for individual animation or removal (e.g., "throwing away 40% of pieces").
  4. Customizable Complexity: Easily scale from a few large chunks to hundreds of tiny splinters.

Dimensions

Bounding Box: (calculated from a string of text)

Shard Density: Variable (Controlled by the number of seed points)