Zigzag engine: cubical/string-diagram constructions in Rust. Reference for topolei.
- web/zigzag-renderer.jsx: React component with full variational curve solver - Minimizes E = τ·Σ|Δp|² + β·Σ|Δ²p|² + κ·|p_mid - waypoint|² - Solves tridiagonal + pentadiagonal linear system via Gaussian elimination - Self-loops rendered as parametric curves offset toward waypoint - Wire coloring by group: input (blue), crossing (purple), output (green) - web/index.html: Minimal HTML loading React/Three.js from CDN Features: - Interactive orbit controls (drag + wheel zoom) - Control panel with sliders: Tension τ, Bending β, Waypoint κ, Resolution - Toggles for waypoints, surfaces, labels - Dark theme with gold accents Coordinate mapping: coord[0]→z, coord[1]→y, coord[2]→x with scale 1.2 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| examples | ||
| fixtures | ||
| src | ||
| tests | ||
| web | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||