Folding a 1-dimensional line with a random crease pattern (mountains and valleys).
It is not guaranteed that every crease pattern is flat-foldable, but it is possible to turn a pattern that is not flat-foldable into one that is by adding creases.
https://d3js.org/d3.v4.min.js