Repository navigation
layerling 1.178.0
Sketch and view
- New: Sketch from face (Discussion #2127, BigToyBox): A button next to Place workplane starts a sketch from the outline of a flat face in one click, as "project a face" does in other CAD programs. Click it, then a face of a part: a new sketch starts right on that face with its outline and every hole in it, the holes as true circles, and only the part clicked counts, so other parts at that height stay out. Finished, the body grows out of the face, so a plate or a lid that has to line up with another part's bolt holes starts from those holes. Until now that took the section view: workplane on the face, the cut turned to it and moved a little into the part, then Sketch from cut. The part is cut 0.02 mm under the face with the same math as Sketch from cut (lib/sectionSketch.ts). Esc or a second click cancels; it refuses while a sketch is open. MCP:
layerling_sketch_from_face(object id and side, optional height to build the body at once). Guide chapters 2 and 14 in every language, the MCP skill and the READMEs say how. - Section view: the cut turns with the view: With Axes from: View the plane took the view at the moment of the click, so after turning, View had to be clicked again. The cut now turns with the view, and zooming or panning leaves it where it is in the design. Turn with the view, a switch under Axes from that is on to begin with, switched off holds the cut still, so the cut face can be looked at from the side. A turn keeps the offset, so turning there and back brings the cut back. MCP:
followViewonlayerling_set_section_view. Guide chapter 2. Contributed by @yoerin in PR #2118. - The section view sits with the workplane (Discussion #2127): Its button moved from the bottom of the measuring tools up below the workplane buttons, where it belongs with them. With the view bar switched off and the measuring tools in their own bar it stays in that bar. The guide in every language and the setting's hint say where it is now.
- New: Parallel and Right angle for sketch lines (Discussion #1881, uninteressant2026): Select a straight line in a sketch and the bar has Parallel and Right angle; click one, then another straight line, and the selected line turns until it runs parallel or square to that line, at any angle, not only level or upright as Shift and the snapping give. It keeps its length and turns about one of its ends: the corner it shares with the other line if they meet, else a locked end, else the end where more lines meet, so an open end swings and an outline keeps its corners; of the two ways it could point it takes the smaller turn. The other line never moves, and a construction line works as the other line too. It is a one-time step, one Undo: nothing is linked or stored in the .lyl, so either line can be moved freely afterwards. Curves, a line whose two ends lie on the other line and a locked end that would have to move are refused with a message that says why. Esc cancels the pick; a click on the selected line itself says to pick another one. Two circles are centred on each other as before: select both and use Centre left and right and Centre top and bottom, with the circle that should stay locked. Code:
lib/sketchLineRelation.ts, unit testssketchLineRelation; texts in every language, guide chapter 7 in 16 languages, README and README.de. - Scrollbars in the sketch (Discussion #2135, PabloJonesUK): The sketch could only be slid with the middle mouse button, with Shift or Ctrl and the right button, or with Ctrl and the arrow keys - awkward on a laptop's touchpad with two buttons. Show scrollbars is now in the sketch's view bar too and gives the sketch the same two bars as the 3D view, one along the bottom and one down the right edge: drag a bar, click an arrow at its end (held, it keeps going), click beside the bar to move by most of the view, or turn the wheel over a bar. They scroll over the plate and as far out as the sketch reaches, which is as far as the view could be slid before. The switch is one for both views: what this browser remembers and Start editor with scrollbars in the settings hold for the sketch as well.
- Section view: the point across a circle shows before the second click (Discussion #2123, Cowski4444): With the first point of a measurement on a round outline, the second click had to land within a few pixels of the point across the centre to give the diameter, and nothing showed where that was, so on a lamp shade it mostly gave a chord a little short of it. A dashed ring now marks the point across, with a dashed line to it through the centre, and it catches the pointer from 2.5 times as far as the other snaps. Texts in every language, guide chapter 2, MCP.
Lids and boxes
- New: Latch as a shape of its own (Discussion #2063): The Lid tool's clip latch, as on a camera battery box, is now a shape in the library's enclosure section, Latch, so it goes onto any box, lid or case without building a box just to cut its latch off. Pins and clip stands as it sits closed, and Separate Parts makes the box's pin, the lid's pin and the clip of it, each pin with its two cheeks as one body; Pins only is for grouping with a box and its lid, Clip only lies on its side as it prints. Clip width and Clip grip work as in the Lid tool, so one clip fits both, and Pin spacing makes the clip longer for a thicker lid. The cheeks run into the wall at 45 degrees. A mesh for now, so STEP export lists it as skipped. Guide chapter 9, MCP and READMEs. Contributed by @marcus040473 in PR #2112 and #2151.
- Lid: clips printed on the lid close in a ring (Discussion #2047, Darrylmc63): With Print the clips on the lid the clip's end on the lid's pin was a C, though it never has to go on or come off that pin. It is now a closed ring with the same 0.4 mm of room, so it prints loose, turns, cannot be pulled off and has no jaws there to break; on the wall side it is flat, so the closed clip keeps clear of the body. Clips printed beside the lid stay as they were. Contributed by @marcus040473 in PR #2152.
- Lid: snap hooks as a fourth kind of latch (Discussion #2047, Darrylmc63): The Lid tool's latches had clips, sliders and bolts. Snap hooks are the snap-fit hooks of the shape library, printed with the lid, so nothing prints loose: each hangs from a nose at the lid's edge and clicks under a catch on the body's wall below the rim, and a tab at its foot pulls it off again. Undercut (0.4 to 2.5 mm, 1 to begin with) sets how far the barb reaches under the catch. The arm is long enough that it bends without breaking in PLA, at least 8 mm and 13 mm for the default; a box too low for it is refused with the height needed. They work with latches on the back and with a hinge, not with a stacking top. MCP:
latchStyle: "snap",snapUndercut. Guide chapter 6. Contributed by @marcus040473. - Hollow: several shelf ledges up the wall (Discussion #2065, dennisdr1953): A box could have one shelf ledge. Number of ledges (1 to 5) and Distance between ledges (10 to 200 mm, 40 to begin with) now lay more of them, for example for the floors of a model railway building. The lowest stays at its height, and each one above is 1 mm narrower than the one below, so a floor plate for a lower ledge still slides in from the open top. The narrowest stays at least 0.5 mm wide, so the number offered depends on the width. Older designs keep their one ledge. MCP:
shelfCount,shelfSpacingonlayerling_hollow_object. Guide chapter 6. Contributed by @marcus040473. - Lid: a live preview beside the box (Discussion #2130, SargeRooster): What the lid's settings would make only showed after Make lid. While the Lid panel is open, a grey, slightly see-through preview now shows the lid where Make lid puts it, with the parts that print loose beside it (latch clips, a hinge's pin and end plugs, a tether) and what goes onto the body (a hinge's knuckles, the latches' cheeks, a thread, a bayonet's lugs, the magnets' posts); cuts into the body are not drawn. It follows a moment after each change, Look at it turns the view to it, and where Make lid would refuse, the panel says why. A switch turns it off, remembered in the browser; a body with text in it has no preview. Guide chapter 6. Contributed by @marcus040473.
Gridfinity
-
Gridfinity: a bin's dividers are dragged in the view, with the compartments' sizes shown (Discussion #1799, GolfVadda): A divider could only be moved by its Position in the Compartments card, one number at a time, without seeing what the compartments beside it came to. A selected bin or tray with dividers now has a grip on each divider's top in the view, as Hollow's dividers set by hand have, and every compartment large enough in the view shows its size between the faces of the walls and dividers round it, rounded as in Hollow. A divider moves in steps of 0.5 mm from the wall, 0.1 mm with Alt, and every compartment stays at least 6 mm wide; Esc puts it back, a whole drag is one step to undo, and a click that hardly moves changes nothing, so evenly spaced dividers stay evenly spaced. The walls between the parts of a split compartment are drawn and measured but have no grip, as the parts stay equal. There are no grips on a bin that is locked or of locked shape, with other bodies selected too, or while a tool that hides the move handles is open. Guide chapter 9. Contributed by @mlugo-apx.
-
Gridfinity: Swallowtail pockets at the corners only (Discussion #1859, BigToyBox): A Swallowtail baseplate had a pocket under every cell along each side without padding, so a 5 x 5 plate took 20 pockets and 10 keys, and a 12 x 12 plate 48 and 24. Corner pockets only, under the Swallowtail switch, now keeps only the pockets under the first and last cell of each side: 8 pockets and 4 keys on a plate of two units or more each way. A side one cell long keeps its one pocket, a padded side still has none, and Add keys lays out a key for each pocket left at the back and right. Split to fit the printer keeps the setting on its pieces, each with pockets at its own corners, and lays out keys only for those: 12 x 12 units on a bed of 180 mm take 24 keys instead of 48. Where keys alone join the pieces, it now also picks between cuts with as many pieces by the fewer keys, two a piece side: 4 x 7 units on a bed of 168 x 84 mm become 4 strips and 6 keys instead of 2 x 2 pieces and 8. The plate's size and height stay the same, and clip notches stay at every cell. Texts in every language, guide chapter 9 in 16 languages. MCP:
gridfinitySwallowtailCorners, and the MCP skill. Contributed by @mlugo-apx. -
Gridfinity: Swallowtail and clip notches drawn again once Manifold has loaded (after #2101): A baseplate with Swallowtail pockets or clip notches drawn before Manifold had loaded could stay drawn without its pockets or notches until a setting changed. Such a plate is now drawn again once Manifold is there, as one with half cells or GridFlock's puzzle already was. Unit tests in
gridfinityGeometry.test.ts. Contributed by @mlugo-apx.
Splitting
- Dovetail on a thin plate (Discussion #1986, BigToyBox): On a plate 3 mm thick split across, a dovetail only fitted made very small, as a tongue wanted at least its own width of room along the cut face. Where no such stretch has room, 2 mm are now enough: the tongue goes through the plate from face to face at the size set, and the halves slide together from above, like puzzle pieces. Cut faces that had room before are placed as before. Guide chapter 5. Contributed by @marcus040473.
Build plates
- Select the plate's bodies (Discussion #2133, jwv2d7r4kn-star): A button in the plate bar, beside the plates' arrows, selects every visible body on the active plate, so a whole plate goes into another design with Ctrl+C or Ctrl+X and Ctrl+V there (the paste lands on the plate you are on, laid out as it was), or is emptied with Delete. Reference images stay out, as in Select all. MCP:
layerling_select_objectstakesplate(1 for the first). Guide chapter 2 in every language, READMEs and the MCP skill.
Export
- SVG of the current view as a triangle mesh (L-amiga, Discussion #2103): Under View, the SVG export has a fourth picture of the current view, Current view: triangle mesh: every triangle edge one can see, the mesh the bodies are printed from, as thin lines (0.1 mm) in each body's colour, for illustrations and pen plotters. The drawing projection takes every edge with a face towards the viewer instead of only the sharp and silhouette ones, up to 60,000 of them (
projectDrawingMeshes' newtrianglesoption,toSvgViewEdgeswith"mesh"); edges with back faces on both sides stay out, and a larger design is refused with the reason. MCP:layerling_export_meshwithview: "current",lines: "mesh". Test:svgViewEdges.test.ts. What's new card.
Notes
- Hidden notes show their number (Discussion #2134, PabloJonesUK): With the notes switched off by the eye button there was no sign that a project had any, and the switch stays off when the next project is opened, so its notes seemed to be gone. While the notes are hidden, the eye button in the camera bar and in the sketch now carries a small number with their count, in the style of the hidden shapes' number on the visibility button; a click on it shows the notes again. The guide (chapter 10, every language) says so.
Aligning
- Align faces marks the faces you picked (Discussion #2136, BigToyBox): In Face to face, Flush and Same axis a face lit up only while the pointer was over it, so once both were clicked nothing showed which two faces Align would bring together. The picked faces now stay marked until Align or Cancel, the face of the part that moves in orange and the one it moves to in green, the colours of the points Point to point marks; the hint under the tool says which goes where. Kept as the hover lit them at the click (viewportFaceMarks.ts). Checked in the editor (two boxes: orange and green faces shown, both gone after Align); texts in 21 languages, the guide (chapter 4, every language).
Print check
- Faces inside another body are no overhang (#2139, jwv2d7r4kn-star): A name plate printed upside down with its text sunk into the plate got an overhang warning, although it prints fine, as every body was read on its own. A face that lies inside another visible body, or rests on one, no longer counts in the line under the view, in the print check and in
layerling_show_overhangs; a face only partly covered counts with its open part, and parts printed in place with a gap still count. The hatching in the view is unchanged. Guide chapter 11. Contributed by @marcus040473 in PR #2153.
Make exact
- Rounded boxes and coarse spheres (after #2048): A 60 x 40 x 20 mm box rounded by 1 mm comes back as its 26 faces in time, where it came back as thousands of facets after half a minute; rounded by 9 mm it gives 26 faces wherever it stands; two fused spheres from a coarse mesh are no longer refused as mostly free-form; and running out of time now says so. Contributed by @marcus040473 in PR #2149.