This script generates a random triangle and then proceeds to “crack” it by finding its centroid and connecting it to the vertices. The script is recursive; by clicking the mouse the process is repeated within all the newly created triangles. The more clicks, the more recursions. You can clear the triangle by hitting the “c” key.
This sketch was inspired by Aranda/Lasch’s “cracking” algorithm found in the puplication : Pamphlet Architecture 27 : Tooling