Skip to content

layerling 1.134.0

Choose a tag to compare

@henmedia henmedia released this 03 Nov 07:32
· 1415 commits to main since this release
  • Curved cone (Discussion #1211): A new basic shape beside the paraboloid: a cone whose side bends. Bend runs from -100 % (inward, a trumpet like a pseudosphere) over 0 (a straight cone) to 100 % (outward, a dome with a flat top), and Top diameter sets the top, from a point to the bottom's width; it is kept as a share of the bottom, so the cone keeps its look when it is resized, oval too. The side is a quadratic Bezier curve whose control point moves from the middle of the straight side to the corner of the box between the two rims, so it never reaches past the bottom circle or above the top. It is an exact body of revolution: Hollow, Fillet, Chamfer and STEP take it; bent all the way, the side runs into the bottom or the top without a corner, and that rim has nothing to round. New fields curvedConeTop and curvedConeBend, in the MCP tools too, texts in 16 languages and the start page in all of them, guide chapters 3 and 12, the READMEs and the three SKILL.md files, its own icon. Tests: volume against the turned section, round and oval, the display mesh, fillets, chamfers and Hollow from -1 to 1 in cadCurvedCone.e2e.ts, and the STEP round trip in stepRoundTrip.e2e.ts. Requested by @bridgerkrist.
  • Copies of a named object are named after it (Discussion #1213): Duplicating or pasting an object you had named gave the copy the very same name, so the object list showed two of a kind. The copy is now "Holder (copy)", then "Holder (copy 2)", the way copies of designs are named, in the language of the interface. Objects that only have the name layerling gave them keep it, and so does a pasted object after Cut.
  • Play the history (Discussion #1210): The history view had a slider and a list to jump through the states, but nothing that ran by itself. Two play buttons under the slider now step through the states like a film, forwards or backwards, with a speed of slow, normal or fast, until the end; any other move in the view stops it. Good for a screen recording of how a part came about.
  • Mac quickstart (Discussion #1187): The step-by-step part of the AI chapter and the one-line setup existed for Windows only. scripts/mac-quickstart.sh does the same on a Mac (Git and Node.js checked, layerling downloaded, "Start layerling" on the desktop, started), and the guide in all languages and the README now have the Mac steps. Not tried on a real Mac yet.
  • Notes as a conversation with the AI agent (Discussion #1191): An AI agent on the MCP bridge could not read the notes on a model, so a note like "make a 5 mm hole here, off centre" stayed unseen. A note card now has a For the AI box (forAi) that makes it a request, and shows the agent's answer under the text (reply, up to 2000 characters, kept in the design like the text). Four new tools: layerling_list_notes reads the notes with id, text, forAi, reply, the object each is pinned to and its position (onlyForAi lists just the requests; reference points are not notes), layerling_add_note puts a note on the model, pinned to an object at its top face's middle or at at, layerling_update_note changes the text or answers with reply - an answer closes the request unless forAi says otherwise - and layerling_remove_notes deletes notes by id. Each change is one step in the history, so undo takes it back. Texts in all languages, guide chapters 10 and 14 in all languages, the skill files and the README. Unit tests in notesForAi.test.ts. Requested by @YShojaei.
  • Fill a Gridfinity bin to the top of the lip (Discussion #1126): Floor height on a bin with the stacking lip stopped where the lip's support leaves the wall (19.35 mm in a bin of 3 units), so a solid blank still had the lip's hollow over its floor, and without the lip it stood 4.4 mm lower than the bins with the lip beside it. The field now goes on to the lip's top, 4.4 mm over 7 mm per height unit (25.4 mm for 3 units), where the lip is filled too: one solid block with a flat top, on which no bin stacks. Between the highest floor a stacked bin still clears and the lip's top it takes no value: typed, stepped or dragged upwards it goes on to the lip's top, downwards from a filled bin it stops where a bin still stacks, and its hint names that height (a range row can now skip such a gap). A filled bin has no inside, so label shelves, finger scoops, dividers, open sides and Wall thickness drop out as on a bin without the lip raised to the top, and Lip chamfer goes. A bin of 1 height unit with the lip and a wall of 1.6 mm or less, which could not raise its floor, can now be filled. A stored height fills only from the lip's top up, so a floor saved between the two, or left there by a thinner wall or the lip switched on, is built at the highest floor a bin stacks on as before. A floor saved over the lip's top through the MCP, which used to mean the highest, now fills, as does a bin at its highest floor lowered by a height unit; a bin filled in the panel and raised by one keeps its floor's height and takes a bin on it again. No new setting: the mesh and the exact body both follow the plan's floor. Texts in 18 languages, guide chapter 9 in 15 languages, the MCP field descriptions and all three SKILL.md. Tests: snapping, saved heights, the thick wall's ledge, the plan, closed meshes and the filled block's volume in gridfinityGeometry.test.ts, the exact body against the mesh for four filled bins in cadGridfinityShape.e2e.ts, the settings row with typing and Up and Down across the gap in gridfinityFloorHeightPanel.e2e.ts. Asked for by @avxmw in #1126. Contributed by @mlugo-apx.
  • The plate under a traced QR code is whole again (Issue #1195): The bottom layer of an icon tag made from an imported picture of a QR code (3 mm wider, without holes) covered only the three corner squares and a few edges. The kernel moves each outline out on its own, and the long outline of the QR code's connected middle, which runs close past itself, came out crossing itself; the fuse then left that piece out without a word, and the rest was still a valid solid that reached as far as before, so the check of #982 did not see it. An outline the kernel moves out into an invalid face now sends the layer to the polygon stroke, as the red layer already went. Test in iconTag.e2e.ts: the plate under the reported QR code has the volume of the whole outline. Reported by @MethylBromide.
  • Narrower or wider letters on an arc (Discussion #1196): Straight text could be stretched to its frame, but text on an arc kept the letters as the font draws them, so tall, narrow lettering on a coin meant splitting the text into parts and losing the arc. Curved text now has Letter width (25 to 400 %, saved as textLetterWidth): each letter is drawn that much narrower or wider about its own middle, its height stays, and its advance along the arc grows or shrinks with it while the letter spacing stays as set; a column of upright letters gets wider letters at the same length. The matrices that place the glyphs on the circle carry the stretch (curvedTextLayout), so the mesh, the exact outlines for the edge tool and the fills, and the box (curvedTextFootprint, curvedTextPatch) follow alike. layerling_update_object takes letterWidth. Texts in 14 languages, guide chapter 8 in 15 languages, the READMEs, the start page and all three SKILL.md. Unit tests in textLetterWidth.test.ts. Asked for by @PBusardo.
  • Text block: several lines, aligned left, centred or right (Discussion #1207): A text holds one line, so a sign of several lines meant one text per line, sized and lined up by hand. A plain straight text now has a Text block card: the lines typed into it (up to 20, one text's 24 characters each) become texts of their own under one another (textBlockFor in lib/textBlock.ts), in the text's font, height, fill and colour, lined up on its left edge, middle or right edge, Line gap apart (mm), each Next line per cent the letter size of the one above (100 all alike). The first line takes the text's place and id, the block's top stays at the text's top, a turned text turns the block, and all lines are selected afterwards; each can then take its own size, font or colour. One undo step. MCP layerling_text_block (id, lines, align, gap, step; all three SKILL.md). Texts in 14 languages, guide chapters 8 and 14 in 15 languages, the READMEs and the start page. Unit tests in textBlock.test.ts. Asked for by @PabloJonesUK.