# Conch Cabinet

> A cabinet of eight generative shells built by Raup's parameter sweep — a generating ellipse slid along a logarithmic spiral. Turn the W / D / T / S / N / K dials and leaf the presets.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Interactive 3D](https://www.sandbase.ai/skills/interactive-3d)
- Version: 1.0.1
- Runs online: yes
- Page: https://www.sandbase.ai/skills/interactive-3d/conch-cabinet

## What you get

Bring a shell form and the sweep parameters to show. The Skill returns a downloadable Skill and a runnable shell cabinet.

## Install

Download the Skill package from https://www.sandbase.ai/skills/interactive-3d/conch-cabinet (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/conch-cabinet build a generative shell cabinet with <your forms and sweep dials>
```

## How it works

1. **Pick a brief and build** Conch Cabinet reads a brief from assets/briefs/ holding copy.docTitle, note and hint, and npm install followed by npm run build inlines src/shell.js and the cabinet chrome into one HTML file. It runs offline in the browser on canvas, with no WebGL and no model calls. npm run demo serves it at http://localhost:63119/ for a local look.
2. **Sweep each shell from Raup parameters** build() in src/shell.js slides a generating ellipse along a logarithmic spiral using W expansion, D axis distance, T translation, S aperture shape, N whorls and K tilt. Ornament tables add cords, ribs and knobs, and albedo paints one of four pigment patterns. buried() culls vertices a later whorl swallows, so the involute corner renders instead of exploding.
3. **Run shoot and open drawers** npm run shoot runs 14 offline checks: the mesh builds, one turn apart scales by 2.30 for W=2.3, spirula buries 0 vertices and the cone buries 1632, pigment varies, the morph eases and rebuilds, and all eight drawers build. Open a drawer and watch every parameter ease toward the new vector while the live readout changes.

## FAQ

### What does Conch Cabinet show?

Conch Cabinet shows a collector's cabinet of eight generative shells. Each drawer card carries a name, a Latin name and a catalogue number. The specimen stage turns when you drag it, a live readout shows the Raup parameters, and a plinth plaque labels the shell.

### How does Conch Cabinet render without WebGL?

Conch Cabinet uses a painter's algorithm on canvas. It projects vertices through a yaw and pitch camera, counting-sorts quads by view-space depth and shades each quad with pigment times diffuse plus a specular kick. Back faces get a negative key and draw with flipped normals.

### What happens when I open a Conch Cabinet drawer?

Conch Cabinet eases every parameter toward the new shell's vector, rebuilding the mesh at each step while it morphs, and eases the camera too. Time is injected through step(dt), so the result is deterministic for a given vector.

### Can Conch Cabinet draw forms other than shells?

Yes, with code changes. Conch Cabinet's builder and painter render any surface function of θ and φ to x, y and z, so the Raup vector can be swapped for corals, horns or gourd forms. The swallowing check then becomes a test of whether the sweep crosses its own earlier turns.

### Is Conch Cabinet free to run?

Yes. Conch Cabinet builds every shell in the browser from its own parameter equation and makes no model calls at runtime. npm install is needed for the build and shoot scripts, and npm run align compares the result with a reference page.

## Examples

- Conch Cabinet (scene)
- Spiral Cabinet (video)
