Is it like a computer program or something
People usually just draw them in Adobe Illustrator or Inkscape or something.Programs that let you "fold" virtually and generate diagram kinda exist but they aren't really suitable for serious stuff and they step images they generate aren't that good.