Conway Polyhedra & Spanning-Tree Hinge Net Unfolding × Sweet-Spot Anamorphic Geometry & Sutherland-Hodgman Sightline Clipping
Anamorphic kirigami nets that lock into one sightline. Flat paper-cut polyhedral nets unfold and crease dynamically in 3D space, yet from one hidden camera vantage their sliced tabs align into an impossible seamless figure or typographic sculpture. Combining spanning-tree hinge kinematics with sightline halfspace clipping produces kinetic optical illusions that are also physically cuttable.
Open in StudioReproduced5.69× · 0.176 ms
Verified proof

Split-screen WebGL2 proof comparing an animated spanning-tree unfolded polyhedral paper net (left, solid unclipped hinged panels) against the identical unfolded kirigami panels sliced analytically by sweet-spot sightline halfspace planes so they align into a crisp anamorphic geometric emblem from the reveal camera angle (right).
Chromium Headless ANGLE/SwiftShader WebGL2 · 512x512 · demonstrates exact sightline halfspace clipping across hinged polyhedral net panels that snaps into a unified anamorphic silhouette at the reveal angle
Show GLSL proof (175 lines)
const float P_FOLD_ANGLE = 0.58; // P Net Fold Progress [0.0, 1.0, 0.02]
const float P_CAM_DRIFT = 0.45; // P Orbit Reveal Swing [0.0, 1.4, 0.05]
const float P_CUT_SCALE = 1.00; // P Anamorphic Cut Scale [0.6, 1.4, 0.05]
const float P_CREASE_AO = 0.85; // P Hinge Crease AO [0.0, 1.6, 0.05]
mat2 rot2(float a) {
float c = cos(a), s = sin(a);
return mat2(c, -s, s, c);
}
// Signed distance to a bold 2D anamorphic emblem (nested star + diamond aperture) in sweet-spot camera plane
float emblemMask(vec2 q) {
q /= max(P_CUT_SCALE, 0.3);
// Outer diamond ring
float dDiam = (abs(q.x) + abs(q.y)) * 0.7071 - 0.34;
// Rotated square star forming an 8-point architectural kirigami seal
float dSq = max(abs(q.x), abs(q.y)) - 0.25;
float outer = min(dDiam, dSq);
// Inner cutout ring + central eye
float innerVoid = length(q) - 0.14;
float innerDot = length(q) - 0.062;
// Four symmetric radial kirigami bridges
float slit = min(abs(q.x), abs(q.y)) - 0.024;
float ring = max(outer, -max(innerVoid, -slit));
return min(ring, innerDot);
}
// Analytical ray-quad intersection in local panel coordinates (centered at panel midpoint, half-size h)
bool hitQuad(vec3 ro, vec3 rd, vec3 center, vec3 uAxis, vec3 vAxis, vec2 halfSz, out float tHit, out vec2 loc) {
vec3 n = normalize(cross(uAxis, vAxis));
float denom = dot(rd, n);
if (abs(denom) < 1e-4) return false;
float t = dot(center - ro, n) / denom;
if (t <= 0.01) return false;
vec3 p = ro + rd * t - center;
vec2 uv = vec2(dot(p, uAxis), dot(p, vAxis));
if (abs(uv.x) > halfSz.x || abs(uv.y) > halfSz.y) return false;
tHit = t;
loc = uv;
return true;
}
vec3 acesTone(vec3 x) {
return clamp((x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14), 0.0, 1.0);
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
bool useSlice = uv.x > 0.0;
vec2 suv = vec2(useSlice ? (uv.x - 0.25) : (uv.x + 0.25), uv.y);
suv.x *= 1.80;
// Camera gently orbits through the sweet-spot reveal angle (ang == 0 locks the anamorphic glyph!)
float sweep = sin(iTime * 0.65) * 0.52 * P_CAM_DRIFT;
// Sweet-spot eye positioned along +Z looking at origin
vec3 sweetEye = vec3(0.0, 0.22, 2.55);
vec3 sweetFwd = normalize(-sweetEye);
vec3 sweetRight = normalize(cross(vec3(0.0, 1.0, 0.0), sweetFwd));
vec3 sweetUp = cross(sweetFwd, sweetRight);
vec3 ro = vec3(sin(sweep) * 2.55, 0.22 + 0.18 * cos(sweep * 1.4), cos(sweep) * 2.55);
vec3 fwd = normalize(-ro);
vec3 right = normalize(cross(vec3(0.0, 1.0, 0.0), fwd));
vec3 up = cross(fwd, right);
vec3 rd = normalize(fwd * 1.85 + right * suv.x + up * suv.y);
// Architectural dark drafting-mat background with subtle sightline reticle
vec3 bg = mix(vec3(0.045, 0.055, 0.078), vec3(0.095, 0.115, 0.155), clamp(suv.y + 0.55, 0.0, 1.0));
float grid = smoothstep(0.97, 0.995, max(abs(sin(suv.x * 26.0)), abs(sin(suv.y * 26.0))));
bg += vec3(0.025, 0.035, 0.05) * grid;
// Spanning-tree unfolded polyhedral net: 1 root face + 4 hinged petal panels rotating around edge axes
float fold = (P_FOLD_ANGLE + 0.14 * sin(iTime * 0.5)) * 1.18;
float sF = sin(fold), cF = cos(fold);
float hs = 0.42;
float bestT = 1e5;
vec3 bestN = vec3(0.0, 0.0, 1.0);
vec2 bestLoc = vec2(0.0);
float bestEdgeDist = 1.0;
int bestPanel = -1;
vec3 bestPos = vec3(0.0);
float bestCutDist = 1.0;
for (int i = 0; i < 5; i++) {
vec3 cen = vec3(0.0);
vec3 uAx = vec3(1.0, 0.0, 0.0);
vec3 vAx = vec3(0.0, 1.0, 0.0);
vec2 hSz = vec2(hs, hs);
if (i == 0) {
// Root face of spanning tree at z = -0.18
cen = vec3(0.0, 0.0, -0.18);
} else if (i == 1) {
// Right hinge petal
uAx = vec3(cF, 0.0, sF);
vAx = vec3(0.0, 1.0, 0.0);
cen = vec3(hs, 0.0, -0.18) + uAx * hs;
} else if (i == 2) {
// Left hinge petal
uAx = vec3(cF, 0.0, -sF);
vAx = vec3(0.0, 1.0, 0.0);
cen = vec3(-hs, 0.0, -0.18) - uAx * hs;
} else if (i == 3) {
// Top hinge petal
uAx = vec3(1.0, 0.0, 0.0);
vAx = vec3(0.0, cF, sF);
cen = vec3(0.0, hs, -0.18) + vAx * hs;
} else {
// Bottom hinge petal
uAx = vec3(1.0, 0.0, 0.0);
vAx = vec3(0.0, cF, -sF);
cen = vec3(0.0, -hs, -0.18) - vAx * hs;
}
float tH;
vec2 loc;
if (hitQuad(ro, rd, cen, uAx, vAx, hSz, tH, loc)) {
vec3 hitP = ro + rd * tH;
// Sweet-spot halfspace sightline projection onto reveal plane
vec3 toHit = hitP - sweetEye;
float zProj = dot(toHit, sweetFwd);
vec2 sweetUV = vec2(dot(toHit, sweetRight), dot(toHit, sweetUp)) / max(zProj, 0.1) * 1.85;
float cutD = emblemMask(sweetUV);
if (useSlice && cutD > 0.0) continue;
if (tH < bestT) {
bestT = tH;
bestPos = hitP;
vec3 n = normalize(cross(uAx, vAx));
if (dot(n, rd) > 0.0) n = -n;
bestN = n;
bestLoc = loc;
bestPanel = i;
bestCutDist = -cutD;
bestEdgeDist = min(hSz.x - abs(loc.x), hSz.y - abs(loc.y));
}
}
}
vec3 col = bg;
if (bestPanel >= 0) {
vec3 L1 = normalize(vec3(0.55, 0.72, 0.62));
vec3 L2 = normalize(vec3(-0.65, -0.25, 0.45));
float ndl1 = max(dot(bestN, L1), 0.0);
float ndl2 = max(dot(bestN, L2), 0.0);
// Warm tactile museum cardstock paper with subtle panel tinting by spanning-tree depth
vec3 paperRoot = vec3(0.92, 0.88, 0.80);
vec3 paperWing = vec3(0.86, 0.82, 0.74);
vec3 alb = (bestPanel == 0) ? paperRoot : paperWing;
// Subtle drafting fold-score lines & spanning-tree crease AO along hinge edges
float hingeDist = bestEdgeDist;
float creaseAO = 1.0 - (0.52 * P_CREASE_AO) * exp(-hingeDist * 18.0) * (0.35 + 0.65 * fold);
float fiber = 0.97 + 0.03 * sin(bestLoc.x * 130.0 + sin(bestLoc.y * 90.0));
col = alb * fiber * creaseAO * (0.24 + 0.95 * ndl1 + 0.25 * ndl2 * vec3(0.65, 0.82, 1.0));
// Crisp dashed fold crease along net boundary
float borderLine = smoothstep(0.012, 0.002, bestEdgeDist);
col = mix(col, vec3(0.32, 0.24, 0.16), borderLine * 0.65);
if (useSlice) {
// Laser-cut burnt-edge rim along halfspace-sliced kirigami contours
float cutRim = smoothstep(0.014, 0.001, bestCutDist);
col = mix(col, vec3(0.76, 0.32, 0.14), cutRim * 0.85);
}
} else if (useSlice) {
// Faint sightline projection halo in background when camera aligns near sweet spot
float lockGlow = exp(-abs(sweep) * 6.5);
float dEm = abs(emblemMask(suv));
col += vec3(0.95, 0.56, 0.22) * smoothstep(0.012, 0.0, dEm) * 0.22 * lockGlow;
}
col = acesTone(col);
if (abs(uv.x) < 0.003) col = vec3(0.95, 0.93, 0.89);
fragColor = vec4(pow(clamp(col, 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}Why they connect
Conway Polyhedra & Spanning-Tree Hinge Net Unfolding computes a cut-free spanning tree over a polyhedron's dual face graph and outputs a hinged articulated mesh whose panels rotate continuously between flat 2D net and folded 3D shell without self-intersection. Sweet-Spot Anamorphic Geometry & Sutherland-Hodgman Sightline Clipping takes that articulated mesh at a target keyframe (or continuously along the fold trajectory) and clips its panels against plane halfspaces defined by rays from the sweet-spot viewpoint through a target 2D silhouette, trimming kirigami slits and depth-staggered tabs that project cleanly onto the intended image from the sweet spot while fracturing into abstract origami from every other angle.
How to build it
Build a dual-graph spanning tree (e.g., steepest-edge or minimum-overlap heuristic) over a clean convex or star-shaped polyhedron to assign parent-child hinge axes and dihedral angles per face. Animate the fold parameter t in [0, 1] by cascading local hinge transforms down the tree so the net opens smoothly like papercraft. Define a sweet-spot camera frustum and a 2D polygon mask (letterform or silhouette), lift each mask edge into a clipping plane passing through the sweet-spot eye, and apply Sutherland-Hodgman halfspace slicing to every unfolded panel in world space (or clip analytically in a fragment/geometry pass for interactive editing). Export the clipped panels back into the flat t=0 net space as laser-cut kirigami SVG paths, or render live with paper-edge thickness, subtle crease AO, and a camera orbit that snaps into the reveal angle.
Field marks
- Arbitrary spanning-tree unfoldings can self-intersect mid-fold or overlap in the flat 2D net unless overlap checks guide edge cuts.
- Aggressive halfspace slicing can sever a panel's shared hinge edge, leaving floating paper islands detached from the spanning tree.
- Thin grazing-angle panels relative to the sweet-spot ray magnify numerical clipping slivers and produce ragged silhouette seams.
- Non-convex target masks require decomposing the silhouette into convex pieces or unioning multiple halfspace CSG strips.
Prior art
- ttillberg/codevember-2026. Open-source geometric study combining polyhedron spanning-tree unfolding with anamorphic sightline halfspace slicing; listed here as an open Arena cross awaiting a standalone WebGL2 reproduction.