Inspiration

Picture a geometry class. A teacher draws a cube and slices off one corner. The cut has three sides. Now push that same plane toward the middle. Where will the next three sides come from?

In my SPECS Lens, Sixth Side, secondary-school students get to test their answer. A transparent cube hangs in front of them. They control the cut and can walk around it to see what happened.

What it does

Make a prediction, pinch the gold slider and move the plane. Watch each tip of the triangle as the plane passes three cube corners at once. Three short coral edges appear, one at each tip. Pause here and you can count six sides while three are still much shorter than the others.

Continue to the center. Six gold dots now sit halfway along six different cube edges. Let go. The cut holds its place while you step to the side and trace one side across each cube face. Look straight along the diagonal and the regular hexagon comes into view. Next cut lets a teacher pause at each example, and Replay brings back the opening triangle for another prediction.

How I built it

My build starts with Snap’s SPECS Base Template. I used CLAD and the Lens Studio MCP to build and inspect the Lens in Lens Studio. A TypeScript function calculates the section as the plane moves. The renderer connects the calculated vertices, fills the polygon and highlights the three growing edges. Spectacles Interaction Kit handles the one-handed slider and pinch controls.

Two LEAF scenarios passed in Lens Studio Interactive Preview. One measured the section through the three stages and verified that Replay restores the original triangle. The other dragged the handle 19 cm and verified that releasing it holds the hexagon in place. Across 3,007 cuts, the geometry code also matched an independent calculation using exact fractions.

What I learned

The most revealing moment arrives just before the finish. Two-fifths of the way along the diagonal, the long sides are four times as long as the short ones. At the center, all six are equal. That distinction shapes the two questions I ask in Sixth Side. When do six sides first appear? And when do those six sides form a regular hexagon? Students can pause at both answers and point to the edges that explain why.

Built With

  • clad
  • leaf
  • lens-studio
  • lens-studio-mcp
  • snap-spectacles
  • spectacles-interaction-kit
  • typescript
Share this project:

Updates

Submission history