Repository navigation
layerling 1.165.0
-
SBC board: FriendlyELEC NanoPi NEO3 Plus and Waveshare ESP32-P4-NANO (PR #1758 by @plazmabokor): Two more boards for the SBC board shape. The NanoPi NEO3 Plus from FriendlyELEC's PCB CAD file (48 mm square with R 3.048 corners, the tab under the USB-C and the notches, the four 3.0 mm holes checked on a real board, every part's place from its footprint; Ethernet and the upright USB 3.0 at the right end, microSD at the left, the USER and MASK buttons pressed from the front edge), the ESP32-P4-NANO from Waveshare's STEP model and drawing (50 x 50 x 1.6 mm, 2.70 mm holes 45.10 mm apart, R 2.00 corners), turned a quarter so its microSD card goes in at the left edge like on every other board. Heights the files do not give are marked estimated. Unit tests for both boards, and the STEP export test knows the NEO3 Plus outline. The code is the PR's; merged with green CI, not opened in the editor.
-
Hollow: a box with the top open can be made stackable (Discussion #1693, PR #1756 by @marcus040473): A new Stackable switch in the Hollow tool window, offered when the top is the one open side, raises the outer half of the wall above the top as a collar (Collar height, 3 mm to begin with, 1 to 10) and cuts a groove one millimetre deeper under the wall that takes the collar of the box below, so one box stands on the next. The inner half of the wall, the floor and the bottom stay flat, so the box still prints standing on its floor and the floor stays joined to the wall; the play between collar and groove is 0.2 mm. It needs straight walls (the foot as wide as the rim), a wall of at least 1.2 mm and a body clearly taller than the collar; where it cannot be built the window says why. Built by the CAD kernel on the hollowed body (
shellStackSolidinlib/cadShellStack.ts, the rim found as the lid tool finds it), kept asshellStackon the hollow's entry, so Edit and resizing the body build it again. MCP:stackonlayerling_hollow_object. e2e testcadShellStack(the volume, two boxes that stand on each other without meeting, a round box, the refusals); 9 texts in 20 languages; guide chapter 6 in every language, the MCP skill. Not printed yet. -
Lid: clip latches, like a camera battery box's (Discussion #1619, PR #1755 by @marcus040473): New in the Lid panel: Latches (0 to 4), spread evenly along the straight stretch of the side the lid opens at, the front or the side opposite the hinge; without a hinge, Latches on the back too puts as many on the back. The body gets a pin between two cheeks standing out of its wall just below the rim, their undersides sloping in at 45 degrees so it still prints upright without support; the lid gets a pin between two cheeks hanging from a small nose at its plate's edge. A clip with a C-shaped socket at each end snaps over both pins: it stays on the lid's pin and turns there, clicks onto the body's pin and comes off with a pull at its tab. The clips lie in a row in front of the lid as one body of their own, on their side as they print. Clip width (6 to 30 mm, 12 to begin with) sets the size, the pins are a quarter of it; Clip grip (0.3 mm, as for the snap-on hinge) is how much narrower the sockets open than the pins. For a Push in or Flat lid lying on the rim and not together with a handle; a side too short and a body too low are refused, the latter with the height needed (
lidLatch.ts,lidForSolidinlidTool.ts). MCP parameters, SKILL.md, texts in the 17 languages of the lid and a guide paragraph in chapter 6 in every language. TestlidLatches.e2e.tswith the real kernel: the closed lid and a clip on each latch overlap nothing. Not printed yet. -
Chinese text no longer turns into question marks (Issue #1757): "中文测试" and "说明书" came out as "???" in every built-in face and even in a Chinese font of one's own. The built-in faces take CJK characters from the Japanese face (Zen Maru Gothic), which has the kanji of JIS X 0208 and lacks most simplified hanzi (说, 书, 测, 试). Resource Han Rounded CN Regular (SIL OFL,
fonts/resource-han-rounded/), a rounded face like Zen Maru Gothic with the same em, is now cut byscripts/build-japanese-typeface.mjsinto four more files beside the Japanese ones:zh1(GB2312 symbols and level 1, 1,445 glyphs, 2 MB),zh2(GB2312 level 2),zht1andzht2(Big5 levels 1 and 2), each holding only what the Japanese files or an earlier one lack (lib/chineseText.ts). A text fetches only the files it needs, and they are lent to every face like the level-2 kanji (loadChineseFile,loadGlyphsForText); a Japanese text keeps its look, and a simplified hanzi no longer fetches the level-2 kanji. A font of one's own with more than 8,000 characters was cut by code point after the Japanese kanji, which left a Chinese font almost without its simplified characters; it now keeps the common characters of its own language first, told by what it has: GB2312 for a simplified Chinese font, Big5 for a traditional one, the kanji for a Japanese one, the browser's language deciding for a font with both (customFontScript,customFontRanks). Checked in the editor: 说明书 中文测试 in Sans and 繁體中文 說明書 們嗎 in Serif are drawn, fetching base and zh1, and level2 and zht1 for the second. Unit testchineseText; guide chapter 8 in every language; What's new card. Reported by @v7g625qzqq-dotcom. -
Surface texture: a vase made from a sketch keeps its pattern on the belly (Discussion #1648, PR #1753 by @marcus040473): A vase turned from a sketch has a mesh from the kernel with rows of points only a few thousandths of a millimetre apart (on the file from the discussion 37,000 of 285,000 edges on the belly were under 0.003 mm). The weld only joined points equal to 1/10000 mm, so the sliver triangles stayed, their normals pointed anywhere, and the pattern took the points round them for a sharp edge and left them where they were: the grooves came out as short horizontal dashes while the neck was clean, and the search for faces ran out of stack.
prepareSurfaceBasenow takes points closer than 0.02 mm (never more than a twentieth of the body's typical edge) to the first of them and drops the triangles that collapse; a body without such points comes out as before. On the file the 12 ridges run from the neck over the whole belly and picking faces finds 120 faces. Unit testsurfaceTextureNearPoints. Reported by @ghandeelorg-alt. -
Text round a body with sides: the far sides are cut as fine as the middle (Discussion #1665, PR #1754 by @marcus040473): Before the letters are cut, the surface is split into fine edges, but only the edges whose points the first unrolling reaches; round a body with sides that unrolling goes straight on and reached 20 of 42 points, the unrolling over the creases that the text really uses 36. So the large triangles of the far sides stayed unsplit and the letters crossed them as streaks. A point that either unrolling reaches now counts (
foldednext tofirstinsurfaceTexture.ts). Unit test with the plate of the discussion and a text of 25 strokes; one assertion of the test of the low "OI" on a star now expects no tear. -
A typed size for several selected parts is no longer cut to the plate (Discussion #1444): With two or more parts selected, a width, length or height typed into a size box on the selection was held to what the handles reach, the plate or at least 260 mm across and 180 mm high, so 36 in (914 mm) came out as 260 mm. A single body or group already took any typed size. The typed number is now taken as it is for a selection too; only a custom size limit for the shape still holds (
typedDimensionLimitinlib/workplaneSettings.ts, used byapplyTypedSelectionSize). The handles still stop at the plate. Checked in the editor: two boxes selected, 914 typed, the selection is 914 mm wide (before: 260). Unit test inhandleDimensionLimit. Asked by @Marangony. -
A turned box under a sketch is drawn turned the way it stands (Issue #1734): A Box, or a round body such as a cylinder or a cone, turned on the plate showed underneath a sketch turned the other way: 45° came out as -45°, mirrored across its own middle, and the points a line snaps to sat on the wrong outline too. A body turns about the up axis as three.js turns it, against the clock seen from above, and SVG's
rotate()with the y axis pointing down turns the other way; the sketch passed the angle on unchanged (referenceShapeTurninSketchWorkspace.tsx, used by the outline and by the snap points). Every other body is drawn from its own mesh in the plate's coordinates and was right already, a group too, so in the reported design only the plain bar in the top left was off. Unit test insketchReferenceOutline. Reported by @FlKo. -
Ungrouping a filleted group keeps its proportions (Issue #1760): A hexagon made as a group, with a chamfer and then 3 mm fillets on its upright edges, came back squashed when it was ungrouped (Ctrl+G takes the edge features back first): 34.6 x 39.07 mm instead of 34.6 x 40, no longer a regular hexagon, and filleting it again kept the wrong shape. The fillet rounds the points and so makes the body's box 0.93 mm shallower; the size the body has now was compared with its size after the first feature, and that shrink was taken for a resize by the user. The frame of the first feature is now carried through what each later feature did to the body's size and middle by itself, so only a resize or move between the features and after the last one counts (
restoreShapeBeforeEdgeTreatmentinlib/edgeTreatmentHistory.ts, which also takes back a single feature, a tube's bore and a texture). It only showed where the outermost points lie on filleted edges: hexagons, triangles, stars; a filleted box keeps its box. Checked with the reported design: the polygon comes back 34.641 x 40 mm. Unit tests ingroupBeforeEdgeTreatments. Reported by @S2-SG. -
The custom shapes' buttons show in Firefox before 121 too (Issue #1761): On Firefox 115 ESR, the last Firefox on Windows 7, a custom shape's tile showed no buttons when the mouse rested on it (move to folder, rename, delete), and a folder's header none either. The rule that shows them listed
:hoverand:focus-withinnext to:has(.danger); Firefox learned:has()in 121 and before that throws away the whole list, so the buttons stayed at opacity 0, there but invisible. The:has()part now stands in a rule of its own, for the tiles and the folders inmyShapes.cssand for the view's scrollbars inviewScrollbars.css, which had the same list. Unit testcssHasSelectorListsfinds any stylesheet rule that mixes:has()with other selectors. Reported by @jackjjh03-cell. -
A body lying on its side pulls past the printer's height (Discussion #1558): A box placed on the end face of a rail lying on the plate lies on its side, its height running along the rail, and its height handle still stopped at the printer's height (200 mm on the reporter's printer), as for a body standing upright. The height handle now keeps the printer's height only while the selection's height axis stands upright; tilted, it reaches as far as the plate too (
heightHandleLimitinlib/workplaneSettings.ts, used by the height drag inWorkplaneViewport). Checked in the editor: a 40 mm box turned 90° about X on the 200 mm plate pulls to 220 mm (before: 200). Unit test inhandleDimensionLimit. Reported by @RuneWinse.