LIVE cartercole.net --:--:-- UTC

// 02 FIELD TOOLS

fidget-maker

PYTHON WEBASSEMBLY 3D PRINTING PLAY LICENSE INSPIRED BY

Draw any outline, pick any of the eleven tilings of the plane by regular polygons, and get a print-in-place fidget: a block of hollow columns that slide up and down past each other, held together by hooks that ride in slots. The idea comes from the Pixel Heart Fidget by 3DPmom on MakerWorld; the generator takes that kind of sliding joint to stars, gears, Texas and every letter of the alphabet. In the browser you can drag the columns, run a wave across them, cut the model open to see the hooks, and download the STL.

> The tour1:40

How it works

It started with the Pixel Heart Fidget by 3DPmom, whose columns slide on hooks. The joint here is redrawn in code to its proportions, and everything around it is new. Each tile is a hollow column 25 mm tall with 0.8 mm walls and 2 mm caps. A neighbour's hook passes through a 2.5 mm vertical slot in the wall, and its arrowhead, 4.46 mm wide, sits inside, so the pair can slide 6.4 mm either way but never pull apart. The hook tapers top and bottom so it prints without supports. One detail is easy to miss: each arrowhead is set 0.28 mm off its stem, so two hooks entering the same square column pass each other with half a millimetre to spare instead of meeting tip to tip.

The generator, in Python, clips a tiling to the outline, merges slivers into their neighbours, and places a joint at every shared edge. Every joint is tested before it is kept: the arrowhead must fit inside the receiving column and clear every other hook in it. When a column already holds hooks, the offsets of all of them are solved together, and a joint that does not fit at the middle of its edge slides along it. A piece that cannot be joined at all is merged into a neighbour and the layout is done again. Each island of an outline, such as the toes of a paw print, becomes a fidget of its own.

The eleven tilings are checked in its tests: every polygon regular, the plane covered with no gaps or overlaps, and the right polygons meeting at every vertex. Then each model is built in 3D with manifold, and three checks run on it: the clearance between every pair of neighbours, every joint slid to 90% of its travel, and every hook pulled back to prove it is caught. The heart passes with all 72 joints.

Will it print

Every model also gets a list of what is likely to go wrong on a printer: a cavity roof too wide to bridge, a wall thinner than a slicer will keep, a sharp tip, a column too thin for its height. Its thresholds were set so that a heart of square columns, built the way the inspiration prints, is flagged for nothing. Large polygons, such as the dodecagons of 3.12.12, leave cavities 30 mm wide, so the generator stands ribs inside them that stop short of every hook. Of the 480 models in the galleries — the shapes of a geometry chart, every letter in six tilings, and Texas in six — all pass the 3D checks, and the hexagonal tiling is the best all-rounder: 40 of the 52 letters come out clean. Maps and traced art bring detail finer than a nozzle, so outlines can be simplified first. Texas's borders go from 1,158 points to 50, and the risks go with them.

In the browser

The app's 112 presets are laid out by the Python generator. The columns themselves are built in the browser by manifold's WebAssembly build in a few tens of milliseconds, by the same steps as the Python. The plastic volume matches to a thousandth of a cubic centimetre, so the STL you download is the one the checks passed. The motion is simulated as the mechanism allows: each column slides only up and down, and each joint holds a pair within its travel.

Stated honestly

None of these has been printed yet. The joint is copied from a print that works, but every check here is geometry, not a printer. The app plays and exports the presets; laying out a new outline still takes the Python generator. The source is not under version control, so there is no repository to link.

License

fidget-maker is free to use, change and share for noncommercial purposes, under the PolyForm Noncommercial License 1.0.0. Selling it, or selling fidgets and STL files made with it, is not licensed: only Carter Cole may use it commercially or grant that right. The bundled three.js and manifold libraries keep their own MIT and Apache 2.0 licenses.