Repository navigation
layerling 1.122.0
-
Undo and redo say what they take back, with the measure (#1023): Coming back to a design, one could not tell what Ctrl+Z would undo; only the History view named its steps, and without numbers. Pointing at Undo or Redo now names the step in the tooltip ("Undo: Rounded the edges of Box (5 mm)"), and the message after Ctrl+Z or Ctrl+Y says what was undone or redone. The steps carry a measure where one number says it (
HistoryStepDetailinhistoryStepDescription.ts): the size a fillet, chamfer, hollow or offset was made with, how far objects moved, the angle of a turn about one axis, the new size of a resized one; several objects share it only when they changed alike. It is printed in the workspace's unit and accuracy (lib/historyStepText.ts), in the History view's arrows too. The hint is worked out when the pointer or the focus comes onto the button, not at every step, since reading a step compares two states. MCP:layerling_set_history_viewreturnsundoStepandredoStep, and its steps carry the measure in millimetres. Guide chapter 4 in every guide language that has it, SKILL.md copies, README, start page, texts in 19 languages. Unit tests inhistoryStepDescription.test.ts. Asked for by @avxmw in #1023. -
Cookie cutters: inner walls that only press have a flat top (#982): Inner walls lower than the outer wall got the same cutting edge, though they do not cut; on thin letters the edge left tips that break off and grooves that hold dough. They are now built with a flat top (
cookieCutterProfiles); the edge can still be set on them under Properties, andlayerling_cookie_cuttertakesinnerEdge: trueto keep it. Inner walls that cut through keep the edge as before. Guide chapter 5 in the four languages that describe the cutter, the SKILL.md copies, unit test. Pointed out by @avxmw in #982. -
Sketch from cut: a part that fits, started from the other part's outline (#1022): For a lid, an insert or a mating piece the cut's outline had to be saved as an SVG, imported, and the sketch moved and turned back to where the cut was. The section view now has Sketch from cut beside "Workplane here": it starts a new extruded sketch on the workplane on the cut (
sectionPlacementWorkplane), with the cut's outlines already in it as lines, so finishing builds the body exactly where the cut is, growing out of it towards the side the section view takes away. The outlines come from the same bodies as "Section as SVG" (visible solids, holes taken off, one colour joined, also on a plane turned to the workplane or the view). They are polygons of the meshes, so the round parts are found again as the DXF export finds them (dxfLoopEntities): a hole comes in as a true circle, a fillet as an arc, a free curve as arcs within 0.01 mm, each arc as cubic curves of a quarter turn at most, as an imported SVG's arcs (lib/sectionSketch.ts, sharingsketchFromPieceRings,ellipsePiecesandsplitPiecewithsvgSketch.ts). Outlines that do not close are left out and counted in the message; a cut of more than 2500 lines and curves is refused, as for an SVG; an open sketch has to be finished or cancelled first. MCP:layerling_sketch_from_section(axis, offset and flipped as for the section SVG; withheightit builds the body at once, without it opens the sketch). Guide chapter 2 and the AI chapter in every guide language, both SKILL.md copies, README, start page and texts in 18 languages. Unit tests insectionSketch.test.ts. Asked for by @lukyanenkomax in #1022. -
Mouse buttons as in Bambu Studio and OrcaSlicer, and a 3D mouse (#1013): Someone coming from Bambu Studio found the view moving the other way round: there a left drag turns it and the right button shifts it, in layerling the right button turns it and a left drag on empty space draws a selection box. The settings now have Mouse buttons under Appearance: "layerling" as before, or "Like Bambu Studio and OrcaSlicer", where a left drag on empty space turns the view (handed to OrbitControls once the view knows nothing was hit,
turnWithLeftButton), the right button shifts it like the middle one, Shift with a left drag draws the box, and a click on empty space still clears the selection; a drag on a body still moves it, and a short right click still opens the menu. A sketch shifts with the right button alone then too (isSketchPanGesture). 3D mouse: a SpaceMouse or another multi-axis controller is read over WebHID in Chrome and Edge (spaceMouse.ts,useSpaceMouse.ts): connect it once in the settings and the browser remembers it; pushing the cap away zooms in, sliding it shifts the view, tilting tilts and twisting turns it about the up axis, smoothly per frame, with a band at rest and a gentle start. Not yet tried on a real device here. README, start page, guide chapter 2, changelog and card. Unit tests inmouseSchemeAndSpaceMouse.test.ts. Asked for by @critterpaint in #1013. -
Two Brazilian Portuguese guide chapters up to date (PR #1014): Chapter 05 now has the cookie cutter, the letters of a name joined to each other included, and the three paragraphs on lofting between sketches; chapter 01 describes the ribbon's title row, the folding groups and the pin, greyed-out icons and the interactive help. The cookie cutter's part names still show in English in pt-BR until the interface catches up. Contributed by @lmagalhaes.
-
The surface texture tool in Brazilian Portuguese (PR #1017, PR #1021): Its patterns, profiles, masks and bonds, and all its labels, hints and status messages, are in pt-BR, so the panel no longer mixes languages. The same batch brings the hinge, hole pattern, ribbon pin, dense mesh and STEP import texts and the offset and texture cards on the welcome page into pt-BR, catches up three reworded sentences and calls a body "sólido" in the loft texts. Contributed by @lmagalhaes.
-
A Hirth joint shape (#1016): A disc with V-shaped teeth running out from the centre, next to the gear in the shape list. Every crest and root is a straight line through one point on the axis, so every flank is a plane and a copy turned 180° about X locks into it at any multiple of one tooth and centres itself - for adjustable hinges, tripod heads and indexing knobs. Teeth (6 to 90), tooth height at the rim, bore and size are set in the panel; new joints and changes of teeth or size keep right-angled teeth, and the panel names the flank angle. The edge tool and STEP take it as an exact body (
hirthPartSolid: a crown of flat triangles kept within the rim's cylinder, the bore cut last),layerling_create_shapemakes it ashirth, and the guide explains it under Gears. Asked for by @Oldandretired in #1016.