This script splits a mesh in pow(CLUSTER_COUNT, ITERATION_COUNT) fractions in pseudo-random shapes.
- Select an object
- Distribute an amount of random points (
SEED_POINT_COUNT) in the mesh of that object - K-means the points into
kclusters (CLUSTER_COUNT) - Find the convex hull of the clusters, creating meshes
- Remove original object
- Go to step 1