Spaces:
Running on Zero
Running on Zero
Commit History
15 days ago
-
Return papercraft pages as PNG pictures as well as SVG files
kwabs22 +1: Claude Opus 5.5QA: the A4 SVGs came back with mime_type None, so chat embeds, <img> and fetchers refused them and they were download-only. Each page is now also drawn with matplotlib (same pieces, labels, folds and tabs, 150 dpi) and returned as a gallery of PNGs; the SVGs stay for printing in mm. The UI panel shows the PNG pages instead of an inline SVG preview. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>2fe7d5d -
List both sides of every papercraft joint; archive QA round 5
kwabs22 +1: Claude Opus 5.5QA round 5 read the top cap's empty glues_to as a missing joint. Tabs sit on one side only and the top cap's are on band 7, so the joint was there but the report listed only outgoing tabs. Each piece now has glues_to and receives_from, with labels resolved to piece names (a split band "band 2" -> 2a, 2b; "band 1a start" -> band 1a). Tab labels are kept in the data even when too short to print. Apple 8x16: 22 pieces, none unconnected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>363fb28 -
Lay papercraft nets out on A4 pages, scaled to fit by default
kwabs22 +1: Claude Opus 5.5Each piece turns to its narrowest orientation and is shelf-packed onto A4 pages (one SVG per page). Strips longer than a page are split, so the model size is limited by band width and cap size rather than strip length. With height_cm blank the model is the tallest whose every piece fits a page (a cat-sized ellipsoid: 13.8 cm, was 4.8 cm before splitting long strips). The report adds real_height_cm, max_height_cm_for_a4 and fits_a4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>e1d8e60 -
Add papercraft_rings: a printable net from the rings rung
kwabs22 +1: Claude Opus 5.5First piece of materialization. Each band between two rings unrolls exactly into one paper strip (triangles laid flat edge to edge; checked: edge-length error 6e-16, and a cylinder band matches 12 chords of its radius to 0.1 mm). Bands that would curl past ~120 degrees on paper are split into parts so no piece overlaps itself. Glue tabs sit on one side of every joint and name the piece they meet; tiny caps and tabs are dropped. New MCP tool papercraft_rings(ledger, item_id, rings, samples, height_cm) returns a pieces report and an SVG net in mm; the UI has a matching panel with a preview. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>92d401f