Skip to content

layerling 1.188.0

Choose a tag to compare

@henmedia henmedia released this 01 Dec 09:14
· 216 commits to main since this release

Several parts

  • The sizes of several parts of one kind at once (Discussion #2293): With several cylinders, screw holes or other parts of one kind selected, the properties panel shows their sizes. A value goes to every part, each stays where it stands, and one undo takes it back. Where the parts differ the field reads “various”, and “120%” gives each its own share. The parts are not linked. Groups keep their own Hole diameter slider.

Face tool

  • Several faces in one go (Discussion #413): Picking stays open: a click on another face of the body adds it, one on a picked face takes it off. Direction, inset, radius and depth apply to all of them, each face gets a part of its own, and one undo takes them all back. All pockets are equally deep, limited by the face with the least body behind it. With one face, a click beside the body no longer closes the tool. MCP: targetFaces in layerling_push_face. By @yoerin in #2290.

Hole pattern

  • A random arrangement (Discussion #2262): Random scatters a number of holes (1 to 400) over a flat face or a round wall, none closer centre to centre than the spacing. The same seed gives the same holes, and the dice picks another one. Where there is no room for all of them, fewer are made and the window says how many. MCP: arrangement: "random" with count and seed in layerling_perforate_face. By @yoerin in #2288.

Sweep

  • An end size (Discussion #2263): A swept section can grow or shrink evenly along its path, from 1 to 500 percent of its start, about its middle, as one exact body. The path has to be open and is made either of straight lines only or of lines and curves without a sharp corner. MCP: endSize in layerling_sweep_sketch. By @yoerin in #2289.
  • The menus at the top of the sketch can be clicked: The badge that says what the sketch becomes lay behind the title row, so its menus could not be reached. It now sits below it and wraps on a narrow screen. By @yoerin in #2289.

Lid

  • Change lid on a Gridfinity bin changes the lid (#2252): With a lid that adds parts to the box, such as magnets, corner screws, a hinge or latches, Make lid put a second lid on a Gridfinity bin or tray and left the old one in place. The Lid tool now finds the bin inside that group and replaces the lid. By @marcus040473 in #2291.
  • A box with a side open says why it takes no lid (#2287): A lid for a box hollowed with its top and a side open used to say the body had no opening at the top, and suggested a flat lid, which came out as a U-shaped frame. The message now says that the rim does not run all the way round, how to hollow for a lid, and where a drawer is made (the loose tray under Hollow). The guide's lid section says the same.

Start page

  • A design's description shows formatted, in a box of its own (Discussion #2278): Resting the mouse (or the keyboard focus) on a card with a description now opens a box beside the card in place of the browser's tooltip. Markdown works there (bold, lists, links, headings, tables), every typed line stays a line, a long text scrolls, and links open in a new tab. It also replaces the card's drag hint on such cards, which could show instead of the description.
  • Designs on a server have a description too (Discussion #2278): Their cards have Description in the menu (also on a right click), the mark and the box. The text is written into the file on the server, with the same guard against overwriting somebody else's change as a save. The server (Node route and store.php) keeps a copy beside the card's picture for the listing and takes it along on copy, rename, move and delete. A design saved to a server with 1.187.0 shows its text after its next save. An installation of your own needs the new store.php. Opening a server design whose file changed elsewhere now takes over its description, so an older copy in the browser no longer writes the old one back.

Split

  • Dovetail ends without the chamfer (Discussion #2258): The new switch Chamfered ends is on to begin with. Switched off, the tongue's ends and the groove's mouth are square, so the joint ends flush. MCP: dovetailChamfers in layerling_split_objects. By @marcus040473 in #2292.
  • A distance from the picked face (Discussion #2282): After Pick face the Split window shows a field From face, at 0: how far the plane stands from the face it was laid on. Type -25 and the plane goes 25 mm below the face, so a cut a set distance from a face needs no sums; the plane position above keeps the real height. The field goes when the plane takes another orientation or rotation. The plane position also drops the sums' last digits: a plane through a centred part reads 0.00 instead of -0.00002. Texts in 16 languages, guide chapter 5 in every language. Tests in splitFaceOffset.test.ts.
  • How far the plane was dragged (Discussion #2282): While the plane's arrow is dragged, in Split and in Stretch, a label beside the pointer shows the distance since the drag began, with its sign and in the workspace's unit.

Guide

  • Frequent questions: a part that disappears when grouped (asked in the Facebook group): New answer in every guide language: a group's holes cut every solid in it, so a part that belongs inside a hole is grouped in a second step.

Flexi joints

  • Folding hinges fit narrower bodies (Discussion #2283): The cones of a folding hinge took their size from the body's height alone, so a stem 8 mm high needed about 19.5 mm of width, even where smaller cones fit. They now get smaller until three knuckles fit across, so 8 mm high needs about 12 mm of width instead of 19.5. The panel, the guide and the MCP description say about 12 mm instead of 15–20.
  • A cut through two parts side by side says so (Discussion #2283): Where a folding hinge would cut through two parts of the body lying side by side, such as the hook of a candy cane beside its stem, the message said the body was only 0.0 mm wide there, or the cut went through without a hinge. It now names the joint and says to move the joints out of there with Links all the same length unticked.

Sketch

  • The Bezier curve shows while you drag (Discussion #2286): While a Bezier point is dragged out, the stretch to it bent along already, but as a thin dashed orange line that went unseen on the grid, above all zoomed out or along an axis, so the curve seemed to appear only on letting go. It is now drawn solid in the colour of a finished line, a little stronger, as Tinkercad does. The dashed line stays for pointing before the press.

Fonts

  • Letters of a font of one's own keep their counters, and marks that touch their letter show: A font whose strokes overlap in the file (Bahnschrift and other variable fonts, script faces, and the Å of Arial, Times, Comic Sans and Noto Sans) is merged into one outline when it is added. The counters of the merged letters ran the same way round as the body, so three.js read them as second bodies and A, B, D, O, P, Q, R, a, b, d, e, g, o came out filled (253 of 894 characters in Bahnschrift). They are now written as holes, each after the body it lies in. An ogonek or cedilla that only touches its letter (Ą, ą, Ę, Į, ų) was judged by its first point, taken for a hole and lost; outer or hole now goes by most of a contour's points. normalizeGlyphContours in customFonts.ts, tests in ag10FontCounters.test.ts.
  • Fonts added earlier are put right when they are loaded: The converted outlines are what the browser and a design keep, not the file, so a font added before this version stayed wrong. repairedTypefaceData turns the stored outlines as their nesting asks, once per font in the browser's list (written back) and for the letters a .lyl brings along. Checked on ten installed fonts converted with the code before (19,986 characters, 487 of them wrong): bodies, holes and areas afterwards as in a fresh conversion, a font that is right stays untouched, 70 to 620 ms once per font. Text already baked into an exact body keeps its shape. Tests in ag10FontRepair.test.ts.

Import

  • A traced picture that came in whole can be exported (#584): The kernel's body of an SVG may hold triangles of no area, which close it where three corners lie on one line; the import allows them (#420), the check before every export refused them ("contains 8 zero-area triangles" for traced-picture-584.svg), so such a body could not be saved as STL, 3MF, OBJ, STEP, SVG or DXF. Both checks now use one rule (checkClosedSolid in svgImport.ts); open, non-manifold and flat bodies are refused as before.
  • Crossing hairlines in an SVG come in as one solid: A drawing whose every part is thinner than 0.1 mm left nothing after the closing step and fell back to bodies running through each other; its joined outlines are now used as they are when they make a clean body.
  • A thin part beside thicker ones is no longer lost without a word: The closing step that parts outlines meeting in a corner also removes every separate part thinner than 0.1 mm. Such a part is now put back as drawn when it keeps clear of the rest (two bars, one 0.08 wide: 7.0 mm across instead of 3.0), and counted in the note about parts left out otherwise. Of 3,000 random drawings 2,233 are the same bit for bit, 302 get a part back and 465 only the count; the stencil and both traced pictures are unchanged. Corners are still rounded by 0.05 mm: keeping them sharp would change the stencil's body.

Speed

  • Make exact is about 1.5 times as fast: refine and the circle and torus fits in meshSurfaceFit.ts work on flat buffers that are used again instead of a small list per point. A body of 20,000 triangles takes 0.96 s instead of 1.54 s, one of 35,000 takes 1.8 s instead of 2.5 s; the faces found are the same on 22 bodies.
  • Tracing a picture with many corners is 4 to 10 times as fast: the corner points of an outline are worked out once instead of at each of the up to 14 tries of the fit (cornerPoints in pictureTrace.ts). A gear of 800 x 800 pixels: 92 ms instead of 504 ms, a move of the points slider 49 ms instead of 487 ms. A click on the background is refused at once instead of filling the whole picture first. Same result in 6,161 cases.
  • Mold: moving the parting or the draft limit is twice as fast: what of the master is free along a direction is kept beside the ratings (seeFaces in moldTool.ts), as it depends on neither. 442 ms instead of 924 ms on a master of 50,000 triangles; same analysis in 440 cases.
  • Hole pattern, picking a flat face: the hit, the flat face and the round face are found once (perforableFaceAt in holePatternShapes.ts): 39 ms instead of 85 ms on 50,700 triangles, 129 ms instead of 223 ms on 97,200.
  • A Markdown attachment with many unfinished links no longer blocks the page: linkTarget in markdownView.ts counts parentheses from two sorted lists instead of reading the text to its end for each [a](. 20 KB of them: 3 ms instead of 2 s; 80 KB: 5 ms instead of 23 s. Same tree in 24,863 cases.
  • Surface texture, bumps on a large body: a long slanted border edge is walked cell by cell instead of filling its whole box (nearBorder in surfaceTextureMesh.ts): 1.5 s instead of 11.4 s on a 300 mm body, and a single long edge can no longer run out of Map entries. Same mesh on five bodies.
  • Mold: handles given back: the cross-sections made on the way to a block, a shell, a skin mold and a die with pins (1 to 9 per mold) are deleted with the rest, and so are the parts of a mold that fails half-way.

Fixes

  • A tilted loft keeps its foot when its offset or end size changes: a loft turned about x or z rose or sank by 1 to 2 mm, because the move of its frame was applied level only (loftShapePatch).
  • A design opened from a file, restored from a backup or duplicated goes to the server with its view, saved views, selection sets, drawing info, description, corner rulers and tape measurements: they were written after the save and were missing from the server's file until the design was next changed.
  • Closing the tab within a moment of the last change asks first: the warning now has the editor hand on changes it was still gathering.
  • STEP: a body whose holes could not be cut says so: the note named a body the kernel could not build, although the body is in the file without its holes.
  • Save to file: a second Ctrl+S while a save runs does nothing, and one write per file at a time: two saves at once into the linked file ended in "save failed" and a forgotten file link although the file was whole. writeLylFile now waits for every earlier write into the same file (the same handle, or isSameEntry for a file picked again); while a write that was given up is still closing, a later save reports a file that does not answer and offers the download instead of being overwritten by the older content afterwards. Overwrite anyway and Save as download in a save's messages save the design as it is then. Test in ag10LylFileWrite.test.ts; not run in a real browser.
  • Gridfinity: a baseplate with the GridFlock puzzle keeps its size in the exact body (Discussion #2232): A plate's box takes in how far the puzzle's tabs and fingers reach past its sides, and the exact body was then stretched to that box as well: in it and in a STEP export, a split piece of 4 x 4 units with the puzzle on the right came out 170.378 mm wide instead of 169.180 mm, and two pieces that belong together were stretched by different amounts. The body now keeps its own size inside that box. A tray, or a baseplate fitted into an outline, of a free size such as 80.123 mm had its exact body rounded to 0.01 mm since the puzzle came in (PR #2061); it is built at its own size again. Tests in gridfinityPuzzle.test.ts and cadGridfinityShape.e2e.ts. Contributed by @mlugo-apx.
  • Cut out: a text cuts out with a clearance in a moment (Facebook group): with a clearance above 0, the part was first grown in the CAD kernel, and a script lettering such as "Michelle" ran past the time limit with "Timed out waiting for the CAD worker; the worker was restarted". A plain text is now grown through its letters' outlines, as the Wider fill does (the same 0.2 mm all round, taller by it at top and bottom), in about a second. Offset falls back to the same way when the kernel times out on a text, and a time-out in Cut out now says in the user's language that growing the part took too long and suggests clearance 0. Checked in the editor with a script "Michelle" cut out of an "M" at 0.2 mm.