Flat-foldability rules. At an interior vertex with sector angles a1..a4 (in order around it), Kawasaki's theorem requires a1 + a3 = a2 + a4 = pi, and Maekawa's theorem requires |M - V| = 2 mountain-minus-valley creases. In the Miura-ori every vertex has sectors gamma, pi - gamma, gamma, pi - gamma and three creases of one kind plus one of the other.
Rigid kinematics. Facets are rigid parallelograms; a crease with fold angle rho is a hinge, a rotation R(d, rho) about its unit direction d. Walking around a vertex the product of the four hinge rotations must be the identity. The page drives the straight-crease angle rho_S and finds the zig-zag angle rho_Z that closes every vertex (numerical root search), then places the facets crease by crease.
Independent checks. Edge lengths and shared-vertex coincidence are measured on the folded geometry, and the angle between neighbouring facet normals is compared with the commanded fold angle.
Auxetic behaviour. The sheet shrinks in both directions as it folds, so the in-plane Poisson ratio -(dW/W)/(dL/L) is negative. The graphs show length and width as fractions of the flat sheet.
Simplifications. Zero-thickness rigid plates, no paper stiffness, no friction, no check for facets overlapping near the fully folded state. Educational model only.