smoothstone
stone turns a request into a print-ready STL. The model picks a recipe and sets its numbers;
stone builds the part with OpenSCAD, checks that it prints (watertight, clean for a slicer, one piece,
flat base, walls, overhangs, size, and layer by layer as a slicer cuts it: stone slice), and keeps every step in a job folder. Every stone message ends with one
line, NEXT: , and stone status repeats it, so a model that loses its context goes on
from where it was.
Pick your tier and follow that card
- Tier S, about 3B parameters and under: tiers/S.md
- Tier M, about 4B to 30B: tiers/M.md
- Tier L, frontier models: tiers/L.md
Set the tier with STONE_TIER=S|M|L or tier = "S" in stone.toml. stone status prints the
card's rules on every call, so they come back after a compaction.
Research first
When the request names a real thing (a phone to fit, a person to look like, a famous statue),
follow research.md before stone set: exact sizes from the maker's own drawings, a list of what
makes a person recognizable, a real museum scan before a generated one. Keep each fact and its
source with stone note "<fact>, <source>"; stone status shows the notes again after a
compaction. Never make up a size a part has to fit.
A part for a product stone's catalog does not have (a mount for a Mac Studio, a cup for a HomePod
mini): stone asks the person for its width, depth and height (a round one: its diameter and height)
and where the numbers come from (the maker's spec page, or their own ruler). stone note keeps the answer in the person's own
words (stone does any unit conversion, and reads the metric figure when a page prints inches too), and NEXT is the
stone product add "<name>" --size W D H --source "<URL>" line that writes the product to the job,
where every product recipe takes it like a catalog one. Never guess a product's size.
stone already carries the facts most parts need, each with its source: filament temperatures and
which filament suits the use (sun, car, dishwasher, flexible, food, heavy load), screw clearance holes
(ISO 273), fan screw spacing, Gridfinity, keystone and wall plate sizes, and ADA sign letter heights.
stone show prints the ones that apply under References, and a passing build prints the filament to
load and why. stone refs <topic> lists them (stone refs PETG, stone refs fan). Use these before
searching the web.
Pictures
stone new "<request>" --image photo.png (or stone image photo.png) traces outlines for
keychains, cookie cutters and signs, and makes a height map for lithophanes and reliefs.
Figures of people, pets and things
The figure recipe makes a mini figure on a round plinth with a name on it. Ask for it plainly:
stone new 'A mini figure of Jensen Huang, 90 mm tall, with "JENSEN" on the base'. With no
photo, stone set says to run stone find "<name>", which downloads free-licensed photos from
Wikimedia Commons and writes credits.txt. For a person it keeps only photos of one clear face
that matches the person's Wikidata photo, leaves out artworks and group shots, and says what it
left out. With your own photo, run stone image <photo> instead.
Then stone build runs three local models (describe, style, lift) and the print checks. Run
tools/figure/setup.sh once first.
Landmarks
stone landmark "<name>" builds a landmark from the map and cited facts, with every number's source kept, and landmarks.md
says what to do when the map does not hold it: a large model writes its missing shapes once from real sources
(docs/REFERENCE_PARTS.md), and then the one command builds it for any model.
To print a model someone made instead, run stone models "<landmark>". It looks the landmark up on Wikidata for its names, searches
Printables and Wikimedia Commons (and Sketchfab when STONE_SKETCHFAB_TOKEN holds your own key),
leaves out what is not a model of it (keychains, lamps, maps, paid models, closed licenses) and
lists the best five with author, license and popularity. stone models --take <n> downloads one,
writes credits.txt, and repairs and stands it up. stone build scales it to the size asked (or the
largest that fits the bed), names its thin features, cuts it into numbered parts that fit the bed
with square pin holes, and runs the print checks on every part, with grams and hours each.
Colors
After a passing build of a figure, stone colors splits it into color regions from the colors
of its style picture, lists them largest first with a part name each (base, shoes, pants, jacket or
top, hands, face, hair, glasses, other; the words of the request and look.txt, so a dress is
"dress"), and draws them numbered in regions.png. A part name or a region number picks a region:
stone colors jacket=black rest=white (or 2=black) then writes a 3MF next to the STL with each triangle painted
with its filament. Orca, Bambu Studio and Creality Print open it with the paint, and PrusaSlicer
reads Bambu paint too. The loaded filaments, in slot order, go in stone.toml:
[filaments] with 1 = "white" and 2 = "black" (the default), in the job folder or once per
machine in ~/.config/smoothstone/stone.toml. When a figure's request names colors, the build's
NEXT line is stone colors, and the mapping it suggests follows those colors. Other parts print in
one color, and the build names the filament to load. Before it writes the 3MF, stone cuts each color
edge as a smooth curve through the triangles, and the color_edges check fails any edge that still
zigzags: FIX "color boundary is jagged", no file, and a NEXT line that gives that region the rest color.
The hem, neck and wrists are lines of the shape: a color edge within 3 mm of one moves onto it, and
where the shape has a sculpted groove there (a collar, a cuff) the edge follows the groove, slipped to
the side a viewer sees least. The ledges check fails a color edge with up-facing faces of the wrong
color seen beside it, such as a white strip on top of a collar: FIX, no file.
Check every angle
The numbers are the gate: every check must pass. Then open build/views.png (and build/boundaries.png after stone colors) and look at it panel by panel, all ten sides, not just the front. A part that holds a phone, carries a load or fits a hole must be right from every side, because a fault on one side breaks it as surely as one on the front. Look for a feature missing on one side, a wall that thins, text cut off, and a color edge that zigzags. If a panel shows a fault, say what and where, and fix it.
Measuring from a photo
When a photo has a ruler, a bank card or a US quarter beside the object, stone measure <photo> (with --ref card or --ref coin-us-quarter for those) finds the object's real size,
and stone show fills it in. --known 120mm works when you know the long side.
Before it prints
After a passing build, stone answers what people ask before they press print. Each question has its own card: read it when the question comes up, run the command, tell the person what it says, then run NEXT.
- Does it need supports, and where?
stone supports(supports.md) - Will it fit the screw, bearing, shaft or lid?
stone fit(fit.md) - Will it hold the load?
stone strength load=3kg at=tip dir=down fixed=bottomwith the person's own load and unit (20N, 3kg, 5lb), the spot it pushes on and what holds the part,fixed=holesfor screws through its holes. Addmaterial=,walls=andinfill=when they said them (strength.md) - Will it survive a car, the sun, a dishwasher, or warp on the bed?
stone heat where=car(heat.md) - How long will it take, and what will it look like printing?
stone timelapse(timelapse.md) - What would go wrong without supports, or if it came loose?
stone timelapse --fail(fail.md): a model, not a recording; say so.
These are models, checked against hand numbers and slicers, not against this person's printer. Pass on the limits they print.
To edit the part in CAD, stone export writes an editable STEP and a SolidCraft design beside the STL.
When a print fails
Follow doctor.md: stone doctor "<what the print looks like>", with --image photo.jpg for a photo or
--camera for the printer's own camera. It asks for the printer when it needs it: stone printer lists the
profiles and stone printer set <id> keeps it. stone ranks the causes for that printer, asks the one question that tells
them apart, and gives the maker's fix. Read every SAFETY line to the person. When they say it worked:
stone doctor fixed "<what worked>". Sharing the fix is their choice, and stone sends nothing: stone doctor share gives a link they open and submit themselves. stone never starts, pauses or cancels a print.
Start
stone status


