Skip to content

layerling 1.137.0

Choose a tag to compare

@henmedia henmedia released this 03 Nov 23:23
· 1336 commits to main since this release
  • Make exact: imported meshes as exact bodies (PR #1245, by @marcus040473): An STL, OBJ or 3MF is only triangles, so the edge tools refused it above 4,000 triangles, a bore's rim was dozens of short edges, Delete face found no faces and the STEP export left it out. Make exact (Modify, Surface, the body's right-click menu, MCP layerling_make_exact) finds the planes, cylinders, cones, spheres and tori the mesh was made of and rebuilds it as an exact OCCT solid, so Fillet, Chamfer, Delete face and STEP treat it like a STEP import. What fits no surface stays as small flat facets; a mostly free-form mesh is recognised first and stays a mesh; one undo step brings the mesh back. The edge tool rebuilds a small mesh with round faces the same way on the fly, the STEP export takes imported meshes along made exact, and Simplify mesh has Keep edges and holes (on by default): sharp edges and a bore's rim stay, flat faces still lose most of their triangles (MCP keepEdges). Texts in 14 languages, a guide section in chapter 12.
  • Edge tool: sharp inner corners are rounded first (PR #1244, by @marcus040473): Group a few overlapping discs, pick the top edges and Fillet refused even at 0.5 mm, because the arcs meet in notches where the rolling ball has no room. When a fillet or chamfer fails, the notches are now rounded first (at the size, then half, then a quarter), the picked edges are found again on the rounded body, and the status line says so. Nothing is tried when an edge is shorter than the size, a result only counts when it is a closed solid, and it takes at most 4 s. The MCP result carries innerCorners.
  • Polish: history playback, style fixes and the missing guide parts (PR #1251, by @cyryllo): The history playback strings, five texts brought in line with the reworded English, Polish punctuation instead of en dashes, and the parts the Polish chapters were still missing (shape library sections, surface texture layers, lids with magnets and hinge, cable channel, snapping in sketches, loft sections, SBC boards, STEP assemblies).
  • Danish: four corrections in the guide (PR #1242, by @Henrikth12): The copy-naming sentences in chapter 3, "meshes" in chapter 5, the line-ending sentence moved to Draw in chapter 7, and the Raspberry Pi 5 cable sentence in chapter 9.
  • European Portuguese: 1073 more sentences (PR #1256): The interface in "Português de Portugal" (pt-pt) gains 1073 translations - shape properties, gears, threads, custom shapes, tags, QR codes, Gridfinity, import and export, view controls and workspace settings - and has 2511 of the 4545 sentences now. The language stays marked as incomplete, so what is missing shows in English. Contributed by @jcpcustodio.
  • A held arrow key keeps up with the body (Discussion #1042): Each press of an arrow key is a whole step (the shapes, the history, the view drawn again), and a held key repeats about 30 times a second. On a slower computer a step took longer than the gap to the next repeat, so the presses queued up, the body fell behind the key and went on moving after it was let go: with the CPU slowed to a third, 7.7 seconds. The repeats are now added up and moved once a frame by their sum (createKeyRepeatBatch in keyRepeatBatch.ts); a fresh press still moves at once, and what is left goes when the key comes up, so the body stops after 0.7 seconds there. Ctrl+Up and Ctrl+Down work the same. Unit test in keyRepeatBatch.test.ts. Reported by @uninteressant2026.
  • Moving with the arrow keys says by how much (Discussion #1240): The status line only said "Moved 1 shape" after an arrow key, so there was no telling how far the shape had gone. It now names the distance in the workspace unit, for example "Moved 1 shape by 5 mm", and the same for Ctrl+Up and Ctrl+Down ("Moved selection up by 5 mm"). Texts in en, de, fr, nl, ru, cs, sl, da, es, it, pl, ar, zh-cn and zh-tw.
  • Swallowtail: baseplates that click together (Discussion #1061): A drawer filled with several baseplates had nothing holding them to each other. A baseplate now has Swallowtail, off by default, named after the swallowtail cramps that joined the stone blocks of Egyptian temples: the plate stands on a 2.4 mm floor, 7.4 mm tall, its sockets ending on it, with half a bow-tie pocket at the middle of each cell under every side without padding, so two plates side by side make whole pockets across the seam. Add keys lays the keys out in front of the plate as sketch bodies ready to print, one for each pocket at its back and right, so that every pocket across a seam with the next plate gets one; clicked again, it replaces the keys it laid out before. A key is pressed in from below: its slotted ends squeeze past a lip in the bottom 0.6 mm of the pocket, 0.2 mm in from its sides and from the plate's side, and spring out behind it, so it clicks in and holds; the sizes came out of two test prints, where a lip 0.3 mm in or a key the full size of the pocket was too tight. Not on a plate fitted to an outline. The mesh is the plate on its floor with the pockets cut by Manifold, the exact body the same cut in one boolean with the sockets; saved as gridfinitySwallowtail, taken by layerling_create_shape and layerling_update_object, with gridfinityKeys: true for the keys. Texts in 18 languages, guide chapter 9 in 15 languages and all three SKILL.md. Tests: the plan's pockets, height and keys, the closed mesh before and after Manifold and the pockets' volume in gridfinityGeometry.test.ts; exact bodies against the mesh, a 12 x 12 plate and a key across the seam of two plates, clear above the lip and caught by it below, in cadGridfinityShape.e2e.ts; the switch and Add keys in gridfinityPaddingPanel.e2e.ts. Asked for by @iron-bro in #1061. Contributed by @mlugo-apx.