Solids
model
- Input shaftØ6 mm, with a collar
- Pinion, 12 teethModule 2
- Gear, 36 teethModule 2
- Output shaftØ8 mm, with a collar
- Flanged bushCarries the output shaft
- Hex standoffHolds the two plates apart
A thing can be a solid. These are the parts of a small gear reduction, standing in the order they turn each other: the input shaft turns the pinion, the pinion drives the gear at three to one, the gear turns the output shaft. Open a part and it can be turned by dragging, or with the arrow keys.
A shape is a mesh of triangles, sixteen bits to a coordinate, packed and compressed: all six are 7,980 bytes together. A scene names a shape by the digest of its bytes and the stage draws only bytes that match. The small pictures in the flow are drawn one after another on a single hidden canvas, and the part that draws is fetched only by a page that has a solid on it.
The parts were drawn for this page by a short script, each as rings around one axis. They are pictures of parts, not drawings to make them from.
| Part | Triangles | Bytes | Digest |
|---|---|---|---|
| Input shaft | 1,152 | 1,186 | 34873a57f09f… |
| Pinion, 12 teeth | 1,152 | 1,020 | 6986e5c3f6ce… |
| Gear, 36 teeth | 5,184 | 3,116 | fbef2f96a77e… |
| Output shaft | 1,152 | 1,201 | c3dfc7399e71… |
| Flanged bush | 864 | 845 | 913e18360dfe… |
| Hex standoff | 384 | 612 | 677cdb49a297… |
<Stage scene={scene} label="The parts of a gear reduction" onAct={onAct}
shapes={async (shape) => {
const answer = await fetch("/shapes/" + shape.digest.slice(7) + ".mesh");
return new Uint8Array(await answer.arrayBuffer()); // checked against shape.digest before it is drawn
}} />