Skip to content

layerling 1.132.0

Choose a tag to compare

@henmedia henmedia released this 02 Nov 08:03
· 1476 commits to main since this release
  • A chamfer or fillet keeps the hole of a bundle round its own part (#1164): A bundle of a peg and a bigger hole, grouped with a box, cuts the box but not its own peg, so a ring-shaped groove stays round the peg. The edge tool sent such a bundle to the kernel as its mesh, which has the hole already taken out of its own parts and so no hole at all, and the chamfer came back with the groove filled. A bundle that mixes solids and holes is now opened into its parts with a scope of its own (BUNDLE_SCOPE_BASE): in the worker its hole cuts the rest of the group, and its solids are added after that. Kernel test with the reported box, peg and hole (the groove stays to 25 mm^3 and the peg keeps standing). Reported by @makanaan on GitHub.
  • A collar between a screw's head and its thread (Discussion #1152): A spacer under a star knob, or a shoulder that holds a head off the part, had to be a cylinder placed round the shaft and grouped by hand. A screw now has Collar height and Collar diameter: a round collar on the head's shaft face, twice the thread wide unless set and kept 0.4 mm inside the head where it is narrowest (between a star knob's scallops, round a wing head's hub), so it prints on the head without supports; the thread keeps its length and the body grows by the collar. A countersunk head has none. On a cylinder or hex head the collar is a cylinder fused on after the head chamfer, whose limit now leaves the collar's footing standing; on the outline heads it is one more round tier (threadOutlineTiers), and mesh and exact body take it from the same threadBuildPlan. Saved as threadCollarHeight and threadCollarDiameter, scaled with the screw, and taken by layerling_create_shape and layerling_update_object (all three SKILL.md). Texts in all 18 languages, guide chapter 9 in 15, the READMEs and the start page. Tests: closed meshes for every head with a collar, its volume, limits and saving in threadGeometry.test.ts, the exact body against the mesh in cadThreadBody.e2e.ts. Suggested by @billdestud.
  • The lid is an exact body, so its edges round (Discussion #1154): The Lid tool built every lid with Manifold as a mesh, so rounding the top edge of a lid for a rounded box ran over facets and failed. Where the body is one the CAD kernel knows exactly (a rounded box hollowed with Hollow, say), the lid is now built by the kernel too (cadLid.ts, kind lid in the CAD worker): the body cut just below its rim gives its outline and opening as faces, whose outlines are moved out or in exactly and pushed into the plate, the lip and the rim, magnet pockets included, laid where the mesh lid lies. All four kinds; a body with walls standing in its opening, several bodies at once and lids that need posts for the magnets keep the mesh lid. Kernel test in cadLid.e2e.ts (all four kinds, round corners as cylinders, volume, pockets, a top edge rounded). Guide chapter 6 (en, de) and the MCP skill. Asked for by @hdinwiddie.
  • A concave ("negative") fillet scoops an edge out instead of rounding it (Discussion #1160): The fillet only ever rounded an edge off; a quarter-round scoop out of a corner, as the notched corners of a box, meant a cylinder turned into a hole, lined up by hand. The fillet window now has Concave (scoop out): it cuts a cylinder of the chosen radius lying along each picked straight edge out of the body (lib/cadConcaveFillet.ts), which works for any angle between the faces. It is saved as concave beside amount, Edit brings it back, the list reads "Concave fillet", and the AI bridge's layerling_apply_edge_treatment takes concave: true (all three SKILL.md). Curved edges are refused ("A concave fillet works on straight edges only"); it cannot be combined with the variable radius. Guide (en/de/hu), texts in en, de, cs and nl (the other languages show English). Kernel test: a quarter-round out of each of the three edge directions of a box with exactly the volume pi r^2 l / 4, all four corners at once, and a curved edge refused. Asked by @HWKPARISTX on GitHub.
  • A hollow body turned before its hollowing keeps its shape and place when resized (Discussion #1150): A hollowed body is hollowed again after a resize, from the shape it was made from, stretched as the body was. That shape keeps the turn it had, while the body has it baked in; only a quarter turn about the vertical was taken into account (#729). A teardrop stood up and hollowed therefore grew in its depth when its height was pulled, an oval, and kept by its bottom instead of its middle it sank into the plate when made bigger (28.65 mm at 1.43 times). The stretch now goes to the axis each of the shape's axes lies closest to after any turn (hollowStretchSincePicture), and the shape keeps its middle (restoreShapeBeforeEdgeTreatment). Unit test with the reported teardrop in edgeTreatmentHistory.test.ts. Reported by @dlguess.
  • A turned shape keeps its turn when resized on a face workplane (#1163): With the workplane on a raised flat face, the resize handles of a shape turned on it took the workplane's axes, not the shape's, so after a 90° turn the length dragged went into the other side and the shape looked turned back; typing the size worked. The handles now keep the shape's own axes unless it lies square to the workplane (selectionFrameForShapes, as #933 did for a workplane on a side face). Unit test in selectionFrameTurnedOnFace.test.ts. Reported by @Oldandretired.
  • A vase too dense to hollow says where its own hollow and lid are (Discussion #1153): Hollowing a Vase shape or treating its edges stops at 4,000 triangles, and a vase has hundreds of thousands; the refusal spoke of "edge treatment" even after Hollow, and came in English. On a vase it now says to choose Hollow with wall under Build and a lid on the Accessories card (status.vaseTooDense, in the 13 languages that have the vase), from the Hollow dialog and the edge tool alike; the refusal for any other dense mesh now shows in the person's language too (userErrors.ts). Unit test in userErrors.test.ts. Asked about by @Cowski4444.
  • The section button turns the cut off (Discussion #1101): The X, Esc and the section button in the bar all only hid the section view's window and left the cut on, so with the window's header out of sight (under a side bar moved up) the cut could not be switched off. A click on the button while its window is open now turns the cut off and closes the window, as an off switch would; the X and Esc still only hide the window and keep the cut, and the button stays highlighted while the cut is on. Guide chapter 2 (en, de). Reported by @grmonsey.
  • Sink a part into a face, its top flush (Discussion #940): A new shape or a part picked up with C could only rest on a face, never go into it, so a countersink or a counterbore had to be sunk by hand. Holding Shift while it is placed or carried onto a face now sinks it: upright, its top on the face and the body below it (sunk in placementPatchForNewShape and carriedOntoFace); pressing or letting go of Shift moves the ghost at once. Shift+D drops the selection with its top on the workplane instead of its base (top in translationToWorkplane). A countersink, counterbore and double countersink also start as a hole now, as a port opening does (hole: true in their library entries); shapes already in a design keep what they are. Unit tests in sinkIntoFace.test.ts and countersinkOneEntry.test.ts. The guide (chapter 4) in English and German. Suggested by @MethylBromide.
  • Folded History undoes with one click (#1148): When the window is too narrow, History folds into one button that shows the Undo icon, but a click on it only opened the group, and resting the mouse on it had already opened it, so the click closed it again and nothing seemed to happen. The folded button is now Undo itself (greyed out when there is nothing to undo, in the sketch too), and the tab with the arrow under it is a button of its own that opens Redo and the history; resting on Undo no longer opens the group. In every folded group, a click right after the resting pointer opened it keeps it open, and the next one closes it. Guide chapter 1 (en, de). Reported by @relegante.
  • An open sketch survives a reload (Discussion #1146): The design saves its bodies, but a sketch that is not finished is no body yet, so a reload - after an update, for one - took the picture traced over and the line drawn. The open sketch is now kept in this browser while it is drawn (sketchDraftStore.ts, in a database of its own, as a picture can be large), written at once when the window is left or the update reloads it, and opened again with the design; finishing or cancelling the sketch removes it. The sketch of an existing body comes back once the body is there. Unit test in sketchDraftStore.test.ts. Reported by @gquiring.
  • Chamfillet meshes like the other edge treatments, and designs it made heavy open light (Discussion #1042): A Chamfillet cut its body with a chord of 0.0025 mm and an angle of 0.028 rad whatever the quality, 20 times finer than a fillet of the same size, and the body kept that as the floor for every treatment after it. A star 31 mm across with a 1 mm Chamfillet and a fillet came to 195,263 triangles instead of 6,923; a design of 50 such bodies was 139 MB, took 3.5 minutes to open and seconds to select. A Chamfillet now meshes as finely as the quality asks, as fillets and chamfers do; its blend still shades smooth from the kernel's normals. Bodies it meshed before are meshed again from their exact body when a design is opened (cadMeshRelief.ts, through the sketch worker, each exact body once), in every step of the undo history too, and the design is saved so: that design came down from 3.67 million triangles to 124,342 and from a 21.6 MB file to 2.1 MB, and opens in seconds. A body is only meshed again where the new mesh keeps the old one's outline. e2e test in cadMeshRelief.e2e.ts. Reported by @DeanDavis.
  • Fit a Gridfinity baseplate into a drawn outline (Discussion #1061): A baseplate filled a rectangle only, so a drawer with a corner cut away, a rounded back or an L shape kept gaps its padding could not close. Select a baseplate together with any other shape standing on the workplane - a sketch of the drawer's inside, say - and Fit baseplate to outline in the properties panel fills what the shape stands on, set in by 0.25 mm: whole 42 mm cells on one grid, moved in 2 mm steps and against the outline's straight sides to where it holds the most, at most 6 across and 6 deep (12 with Large plate), and solid everywhere else, so every socket still takes an ordinary bin. The plate moves there in one Undo step and the shape stays. The outline is read in the plate's own frame, turned and mirrored as it is, and kept on the plate stretched to its box (gridfinityOutline); the exact body is the outline's slab less a socket for each cell, so fillets, Delete face and STEP take it. An outline from 10 mm a side up to 334 mm, or 586 mm with Large plate, with at most 1000 points fits; one outside that or in several parts, and a plate tipped over, are refused with a message. The hint under Width says how many cells the plate holds, and switching Fitted to an outline off makes it whole units with padding again. Saved in .lyl files; layerling_create_shape/layerling_update_object take gridfinityOutline. Texts in every language that has the Gridfinity texts, guide chapter 9 and the MCP skill say so. Unit tests in gridfinityGeometry.test.ts, panel tests in gridfinityPaddingPanel.e2e.ts, and cadGridfinityOutline.e2e.ts builds outline plates' exact bodies against their display meshes. Suggested by @iron-bro in #1061. Contributed by @mlugo-apx.