I needed the ability to shatter objects and the Voronoi pattern was all the rage back in the day, but unfortunately there weren’t any implementations of it in Maya. It took a while to figure out the logic, but I eventually got a script that would produce a fractured mesh using the Voronoi method.
It’s actually 2 scripts, 1 MEL script and 1 Python script. The Python script is responsible for generating points inside the mesh and generating locators. Based on the locator positions, the MEL script will generate the shards around the points.
- Set the number of shards.
- Set the crack thickness.
- Option of assigning a shader to the interior faces of the shards.