This originally uses the simulation nodes but I've ported this to use the buffer hack so it will work in stable versions like 3.4
To reset the sim just navigate back to the first frame on the timeline.
Some test runs:
https://twitter.com/cmzw_/status/1637314209456484352
https://twitter.com/cmzw_/status/1636968394745614337
https://twitter.com/cmzw_/status/1636675780175613954
The only difference in the files below is how a face is cut(i.e. from the preview image - left: line, right: wedge), the line one uses a square while the wedge uses a triangle.