A procedural corrugator of mesh for cloth materials based on wave function collapse, part of the software for a PBD cloth simulator.