BALL:BINDING
Web-based prototype for simulating a ball that is bound and compressed by drawn yarn. The ball is a triangle mesh on a unit sphere that is inflated by gas pressure, and the yarn is a set of nodes bound to the surface with length constraints. The mesh is refined adaptively near the yarn and in stretched areas, and self-collision keeps folds apart. The prototype shows how windings tighten the membrane, where strain builds up, and how the ball bulges between the threads. Strain is shown as a grayscale gradient on the surface, and the yarn can be drawn freely or placed with presets such as ring, cross, spiral and knot. The result can be used for design exploration, teaching of constraint-based simulation, and as a starting point for further tools. The current state can be exported as a GLB file for use in other 3D software.

LIVE : https://code.turboflip.de/run/b688ef6abf83f21f/
CODE : https://code.turboflip.de/p/b688ef6abf83f21f
- Version: v0.2
- Draw yarn directly on the ball with the pointer
- Preset windings: ring, cross, three rings, spiral, knot, random
- Per-string tightening control with live length readout
- Adaptive mesh refinement near yarn and in stretched regions
- Self-collision with adjustable padding
- Strain view as grayscale, wireframe and x-ray yarn modes
- GLB export of membrane and yarn
- Tech: Three.js r0.170.0, WebGL, JavaScript modules, import map from jsDelivr CDN
- Requires: WebGL-capable browser, internet connection for libraries loaded from a CDN

