Solids

6 parts · 7,980 bytes

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.

The shapes this page holds
PartTrianglesBytesDigest
Input shaft1,1521,18634873a57f09f…
Pinion, 12 teeth1,1521,0206986e5c3f6ce…
Gear, 36 teeth5,1843,116fbef2f96a77e…
Output shaft1,1521,201c3dfc7399e71…
Flanged bush864845913e18360dfe…
Hex standoff384612677cdb49a297…
Giving the stage its shapes
<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
  }} />