Simulation of Rigid Origami