Skip to content

layerling 1.162.0

Choose a tag to compare

@henmedia henmedia released this 13 Nov 14:40
· 1279 commits to main since this release
  • A sketched line goes on when switching between straight and smooth (#1725): in a sketch, switching from Line to Smooth line or Bezier curve, or back, in the middle of a chain started a new line at the next click, because every change of tool forgot the last point drawn. Switching between these three drawing tools now keeps the chain, so the next point joins the last one; any other tool still ends it. Unit test; checked in the editor through headless Edge (two straight points, two smooth, one straight: five points, four segments, one chain). Guide chapter 7 in every language. By @stefaanl in #1725.

  • Align without the Alt key on a tablet (forum): Alt in Align mode makes the dots match sizes and lets the gap dot take a typed gap, which a tablet cannot do without a keyboard. Beside the dots there is now a switch, Size mode, shown wherever a finger or pen is a pointer (CSS any-pointer: coarse); it holds the same mode as Alt until it is switched off. A finger or pen no longer undoes a mode set by Alt-less means, and clicking a dot with the switch on stretches parts or opens the gap field like Alt+click. Guide chapter 4 in every language, 2 texts in 20 languages and What's new card.

  • Scale to a model scale such as 1:87 (forum, 3DVadda): Scale by percent has a second way, Model scale, beside Percent. It offers the model railway gauges Z 1:220, N 1:160, TT 1:120, H0 1:87, 0 1:45, 1 1:32 and G 1:22.5 and takes any other scale typed as 1:xx. A model built at full size is made that many times smaller; for one built at any other size, the original's real size (its height, or its longest side across the plate, in metres or feet) is typed in, and the model is brought to that size divided by the scale - a tree 16 m tall becomes 184 mm in H0. The new size shows before Scale is pressed, and the scale stays set while the editor is open (lib/modelScale.ts). The percentage now goes down to 0.01 %, so 1:220 takes one step; the field took only 5 to 500 % while its message said 1 to 1000. layerling_scale_objects takes scale, realSize and realSizeAxis. Unit tests, guide chapters 4 and 14 in every language, 19 texts in 20 languages, READMEs, start page, MCP tool description and skill.

  • Tube and bent tube name their measures alike (#1724): The tube called its wall "Thickness" and the bent tube "Wall thickness"; the bent tube called its size "Outer size", had no inner diameter and kept Quality at the bottom, while the tube's Sides come first. The tube's wall is now "Wall thickness" (also in the shape defaults). The bent tube's size is "Outer diameter" on a round profile and "Width across flats" on a square, hexagonal or octagonal one; with the same profile inside it shows "Inner diameter" (or "Inner width across flats"), and a value typed there sets the wall from the outer size. Quality moves up to where the tube has its Sides, also in the shape defaults; it keeps its name, as it also sets how finely the bends are divided and works on angular profiles too. Guide chapter 9 in every language (also: a bent tube with a bend angle of 0° is a straight tube with an angular profile), 2 texts in 20 languages, What's new card. Reported by @uninteressant2026.

  • The wedge shows its slope angle, and takes one typed (Discussion #1714): A wedge is often put down to set a face workplane at an angle, and its angle had to be measured with a protractor while the height was changed. Its properties now have a Slope angle field beside length, width and height: it shows the angle of the slope to the plate (atan of height over width), and an angle typed there sets the height for the width as it stands, from 1 to 89 degrees (lib/wedgeAngle.ts). Unit tests for the angle both ways and its limits.

  • The build plate can be hidden apart from a face workplane (Discussion #1714): With a workplane set on a face, the view bar's switch over the grid hid the plate and the face workplane together, and the face workplane's own eye only hid the face workplane, so there was no way to put away only the plate. With a face workplane showing, the switch is now called Hide build plate and hides only the plates; the face workplane stays and keeps its own eye (showWorkplanePlates in viewportScene.ts, kept on the layer so a rebuilt workplane stays as it was). layerling_show_workplane does the same. Guide chapter 2 in every language, MCP tool description and skill, unit tests.

  • The zero lines of the grid in the axis colours (Discussion #1714): The centre cross of the grid was drawn in one colour, so on a small part it was easy to mix up which way X and Y run. While the axis arrows are on, the line along X is now red and the line along Y green, in the arrows' colours, on the plate and on a face workplane; a greyed plate keeps its grid colour. Guide chapter 2 in every language, unit test.

  • Smooth faces on a swept sketch (#1696): After the fix for extruded curves in 1.161.0, a sketch swept along a curved path still came out grainy, slightly in the view and plainly in the slicer. Its faces are free-form surfaces, and the CAD kernel meshed them with points spread unevenly inside, so on a narrow, tightly curved face its triangles tilted off the surface: the reporter's sweep, a lens 1 mm across swept 17 mm, had triangles tilted up to 11° and 47 creases of 10 to 20° between neighbouring triangles in the exported STL. Such a face is now meshed in an even grid, in rows across it at the points the kernel set along its long edges, every point taken on the surface itself; the points on its edges stay, so it meets the faces next to it point for point. The same sweep now has triangles tilted at most 1.2° and no crease of 10° or more, with 514 instead of 558 triangles, and stays closed, also with a hole cut through it. Only a face with four edges, each on one side of the surface's own parameter range (what a sweep gives), is changed; any other face keeps the kernel's triangles, and a mesh that would get a gap falls back to the kernel's (isoGridTriangles in lib/cadRuledStrips.ts, in the sketch and edge workers). The exact body and the STEP export are as before. A body made before keeps its mesh until it is built again, for example when its sketch is changed. Kernel test with the reporter's sweep; checked in the editor through headless Edge with the reporter's file, built again.

  • The message after each step can be switched off (Discussion #1708): After a step such as a union, a short message beside the view cube says what was done and offers Undo. For someone who knows what they just did it only took room and now and then covered the model, and there was no way to turn it off. Settings > Appearance: the view now has "Show a message after each step", on by default. Off, an ordinary message that reports the step just taken stays away (showsNotice in noticeTiming.ts, useEditorNotice marks a message ordinary when it waits for nothing and carries no button of its own); messages that want something, warn, run long or carry their own button still show, and Undo in the ribbon still names the step on hover. Unit tests, guide chapters 1 and 2 in every language, What's new card. Requested by @relegante.

  • A stretched group stays a group (Discussion #1707): Stretch turned every object the plane crossed into one mesh body, so a group came out as one body with its parts and holes melted together and could not be ungrouped any more. A plain group is now stretched part by part: the parts the plane crosses get longer (only they become meshes), the parts wholly beyond the plane move along by the length, the parts before it stay as they are, and the group is built again from them with its id, name, colour and settings (stretchGroupByParts in lib/editorBooleans.ts, the editor's rebuildGroupFromParts); a group inside it goes the same way. A mirrored, deformed, filleted, textured or wrapped group (groupCanKeepParts false) is still stretched as one body. Selected with the stretched objects, an object wholly beyond the plane now moves along as well, so a hole at the end of a case stays at the end; it is not counted as stretched. Unit tests (a plate with two holes made 20 mm longer and 10 mm shorter, a selection, a missed plane); checked in the editor through the MCP bridge in headless Edge: the group kept its id, Ungroup gave the plate 80 mm long and both holes as cylinders, one 10 mm from each end. Guide chapter 5 in every language, MCP skill and tool description.

  • A 3D mouse turned freely moves the view smoothly (Discussion #1013): Twisting and tilting the cap of a SpaceMouse at once, as one does when turning a model freely, made the view jump and stutter now and then until one of the movements stopped. Every axis trembles a little round its value, and the view took each report raw. The six axes are now smoothed over a few hundredths of a second before they move the view (smoothSpaceMouseAxes in lib/spaceMouse.ts), so the trembling evens out; let go, the view still stops at once. Unit tests: a cap twisted and tilted with every axis trembling moves the view with less than half the jitter, a held cap is followed within a few tenths of a second, letting go stops at once. Not tried on a real device.

  • An icon tag or name tag keeps its card after Edit Bundle (Discussion #1692): Opening an icon tag with Edit Bundle, or clicking one of its layers in the Objects list, and then clicking Done left only the plain bundle properties: the Icon tag card with the layers, border widths, heights and key ring hole was gone for good, even when nothing had been changed and with or without a surface texture on a layer. Done builds the bundle again from its parts and kept its name, colour and settings, but forgot that it was an icon tag. A name tag, a QR code and an SBC board lost their card the same way. They now keep it (groupMarksOf in lib/groupMarks.ts, used by the editor's rebuildGroupFromParts). Unit test: a name tag opened and closed again still reads back the same layers.

  • The card of a name tag or icon tag comes back with a textured layer too, and says what a change does (Discussion #1692, by @plazmabokor in #1717): A surface texture makes a layer a mesh, so the tag could no longer read its text or icon from it and the card stayed away after Done. A layer opened and given a step of its own (a surface texture, also as its own part, or rounded or bevelled edges) is now read by the body it was before that first step (tagLayerUnderTexture in lib/editorTextTags.ts), so the card comes back. A change in the card builds the layers anew without such a step, so the card says so beforehand in a short line (nameTag.layerStepsNote in all 20 languages, tagHasLayerSteps in lib/nameTag.ts); Undo brings it back. Carrying the texture over to the rebuilt layers was left out on purpose: it would depend on the texture code and could take long. Unit tests in tests/unit/iconTag.test.ts.

  • A backup whose save dialog hands back no file offers a download (Facebook group): On some PCs the save dialog of Chrome and Edge closes after Save but hands back no file, and the browser reports that like Cancel. Saving a design has had a Download instead button for that since Discussion #1449, but Back up all, Back up selected, a folder's backup, the server backup and Back up custom shapes then ended with "No backup made", so on such a PC there was no way to get a backup at all. Their message now has the same Download instead button: the backup is made again as a normal download into the Downloads folder, without the dialog (pickBackupTarget(name, asDownload) in lylFileAccess.ts; the start page's notice can carry a button now). Checked in the editor through headless Edge with a save dialog that always reports Cancel, English light and German dark: Back up all and Back up custom shapes show the button, and one click downloads the ZIP without opening the dialog again. Unit test, guide in 16 languages

  • Shapes opens when the mouse rests on its arrow, like the folded groups (#1722): Since Discussion #1506 the Shapes button carries the same chevron tab in the group's colour as the folded groups of the ribbon, but the folded groups open while the mouse rests on them and Shapes opened only with a click. Resting the mouse on the tab under the Shapes button (120 ms, as on a folded group) now opens the shape library too, in the 3D view and in the sketch; one opened this way closes again 300 ms after the mouse has left the button and the library, unless the button is clicked, the library is worked in (a search typed, a section folded) or it is pinned. Only the tab opens it, so passing over the button does not throw the large library open; a pen or a finger still opens it with a tap (createHoverOpener in lib/hoverOpen.ts). Unit tests, guide chapter 1 in every language. Reported by @uninteressant2026.

  • The buttons of the left view bar no longer jump on hover (Discussion #1723): Pointing at a button in the view bar on the left moved it a pixel to the right, a leftover from SketchForge, while the ribbon's buttons stay where they are. The view bar's buttons now only change colour too, like the ribbon's. Reported by @uninteressant2026.

  • A chamfer on a group no longer leaves its mesh open (Discussion #1711): After a chamfer on a joined group (a bent tube, ellipses and a cylinder), Split stopped at "This mesh is not closed", the print check ended on "Not manifold" and the slicer left parts of the body out. The exact body was valid, but OpenCascade had meshed three of its flat faces - half an ellipse on top and two small faces beside the chamfer - without a single triangle. The edge tool and sketch bodies now close such gaps right after meshing: a flat opening is capped from its rim, which is the edges of the faces around it (closeFlatMeshGaps in lib/meshHoleFill.ts). The hole filler before Split and other cuts now also closes a flat opening whose middle lies outside it, by triangulating it in its plane (Earcut) instead of a fan from the middle, so a design saved with such a mesh splits again; to export it closed, do its chamfer once more. A mesh the print check cannot read as a solid now stays unchecked and is named under open meshes, instead of the whole check failing. The reporter's body at standard quality: 0 instead of 138 open edges, 2892.2 of 2894.1 mm3. Gaps where curved faces do not meet point for point (seen with the same body at fine quality) are not closed by this.

  • Japanese: every missing sentence translated (PR #1712): About 1,100 sentences that still showed in English, among them the lid tool, the print check, paint, the split connectors, stretch, backups, earlier versions, own shortcuts and the fit test, are now in Japanese; none is missing any more. By @yokobond.

  • Danish (PRs #1630, #1719, #1720, #1721): Chapter 02 of the guide says "det imperiale system", chapter 03 has the paragraph on a texture in one region of a face, the snap-on hinge style is called "Med clips" in the catalogue, and the release notes and cards of 1.159.0, 1.159.1 and 1.161.0 are in Danish. By @Henrikth12.

  • brepjs 20.22.2 (from 20.21.2) and manifold-3d 3.5.5 (from 3.5.4): brepjs skips needless work in a boolean whose input faces carry no hashes and starts a gear flank on the root circle when the base circle lies inside it; manifold rejects out-of-range arguments that could crash it and no longer leaves a halfedge pair uninitialized.