You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lid hinge: a wall as deep as a flush hinge (Discussion #2310, BigToyBox): In a wall thinner than the hinge, the body's knuckles of a flush hinge hung over the inside of the box. Wall as deep as the hinge (off to begin with, hingeWallFill for layerling_make_lid) thickens that wall inwards to the knuckles' depth, from the floor to the rim and into rounded inner corners; the lid's knuckles get their slots in it, and a wall already that thick stays as it is. The hint under Pin play (per side) now also says what the body's holes get: half of the play with filament as the pin (at least 0.05 mm), 0.15 mm for a printed pin.
2D drawing
Dimensions of your own on the 2D drawing (forum, Lofo 628562): The drawing only carried the overall size of each view and the bore table, so a part could not be filed with the lengths that matter. Below the title block fields, Add dimensions… opens a window with one view at a time, large, its corners and bore centres marked. Two corners or bore centres, or one straight edge, then a click where the dimension line goes: beside the points it measures up and down, above or below them across, between them straight from one to the other (Direction: automatic, horizontal, vertical or aligned). A click on the rim of a bore gives its diameter (Ø). The window lists the dimensions, Delete removes the chosen one, Ctrl+Z takes back the window's last change. They are kept with the design beside its drawing number, also in its .lyl file, and the sheet draws them in PDF and SVG, the views moved apart to make room and each on the page of its view when the PDF is split. A dimension whose corners the part no longer has (the part was changed, or only a selection is drawn) is left off, the window marks it and the status line says how many. A curved edge's many short lines are no corners, so a click does not stick to every step of an arc. MCP: layerling_export_drawing draws them, takes dimensions for one drawing, returns the ones drawn and droppedDimensions, and lists the points a dimension can join with corners: true. New lib/drawingDimensions.ts, DrawingDimensionsWindow.tsx; tests in drawingDimensions.test.ts.
Start page
Restoring a backup asks where it holds a newer version (Facebook): A restore skipped every design that was already here, also where the backup had a newer version of it, so two computers could not be kept in step with "Back up all" without deleting or renaming designs first. Now a window asks at the end, once for all such designs: replace them with the backup's versions (same card, folder and file; the version from before is kept under Earlier versions, among the last states of the design, and where it cannot be kept the design is not replaced), keep both (the backup's version comes in as a copy), or leave them as they are. Whether two versions differ is told by their bodies and notes, not by their times: restoring the same backup again asks nothing, also after a replace or a copy. A design that differs and was changed here later is never replaced, and the notice counts those. Designs on a server are skipped as before.
The search finds designs by their description (Discussion #2278): The search on the start page looks through the descriptions as well as the names, in this browser and in a server folder (store.php and the Node server alike). Words written into a description work as tags: "coaster, drinks" there finds the design by "coaster".
The search can be emptied with one click (Discussion #2300): An X at the end of the search field on the start page empties it, and so does Escape in the field. A search that finds nothing in this browser now says Nothing found instead of No designs yet, which read as if the designs were gone.
Sorting by when a design was made (Discussion #2278): Beside Recent and Name, the start page sorts by Created: the designs stay in the order they were made, the newest first, however often they are opened, while Recent puts the ones used last first. The browser remembers the choice (layerling.dashboardSort). Designs on a server keep no creation date and go by their last change there.
Holes
Room for sharp corners in a box hole (Discussion #2296): A printer rounds the inside corners of a rectangular hole by about the nozzle's radius, so a square peg or an insert with sharp corners does not go in. A Box set as a hole now has the switch Corner relief, with a line under it saying what it is for: it puts a small round hole on each corner, centred on it, and gives the corners of the part room. The diameter starts at 0.5 mm for a 0.4 mm nozzle and stays as set when the box is resized. The hole is an exact CAD body, for grouping, the edge tools and STEP. A solid box keeps its sharp corners.
Hole pattern
A teardrop as hole form: Beside round, square, rectangle, hexagon, slot and an own shape, the hole pattern makes teardrops: round holes with a 90 degree point on top, so the holes in a standing wall print without support. The size is the diameter of the round part; the point reaches about 1.21 times that high. It points up on every standing and sloped face and round a wall that stands upright (its axis within 45 degrees of vertical); a round wall lying down takes none, and the panel says so. On a level face, where up does not matter, all point the same way. Teardrops cannot be turned or sloped. Over MCP layerling_perforate_face takes form: "teardrop". A new question in the guide's FAQ explains sagging side holes.
Moving
Alt with the X and Y arrows copies too (#2302): Held from the start, Alt makes the red and green arrows move a copy while the shape stays where it is, as with the blue arrow and a drag of the body. Alt still lets the copy go free of snapping while it is held.
Interface
The selected choice stands out (Discussion #2304): Choice buttons that are on were marked with a very pale yellow, as in Hollow under Open sides. In the light theme they now take the stronger orange of the selected row in the object list, with an orange frame (where the button has one) and darker lettering: Hollow, the quick choices of the edge tool, the paint eraser, the pattern and layer pickers, the picture buttons for gear and vase options, the printer play values, the section view's axis and flip buttons, the sketch's point and picture buttons, and the lit buttons of the object list and the history. Where the dark theme and Graphite have a marking of their own, it stays. Requested by @HWKPARISTX.
Guide
The view bar at a glance, to print (Discussion #2297): The section "The view bar" in chapter 2 lists every button of the bar from the top in a table: its icon as the editor draws it, its name, what it does and its key. A button above the table prints the table alone on one sheet, or saves it as a PDF. In all 17 languages that have the chapter. The guide build draws {{icon:NAME}} from the program's own icons (Lucide by its file name, the hand-drawn ones from their components, readGuideIcons), and {{print-table}} before a table gives it the print button. Ctrl+K finds "view bar" (Ansichtsleiste) and opens that section. Tests in guideViewBarTable.test.ts.
Videos
Video list: The playlist "Começando no Layerling" by Oficina 3D Maker is new, in Portuguese: first steps in layerling, a vase, hollow walls, lids and chamfers, Combine and hole patterns. In the start page list, the guide in every language, the READMEs and the first post of Discussion #296. Pointed out by @edsoniosdeveloper-oss in Discussion #2303.
Translations
Japanese: 278 more sentences translated (PR #2306, by @yokobond): The sentences that were missing up to 1.175.0, among them the detail view, lid labels and box actions, the hollow tool's inserts, hand-set dividers, finger scoops and cutter pockets, thread inserts, the fan, deleting history steps and Make exact. Compartment, finger scoop and the magnetic lasso are now called the same everywhere. Sentences added since 1.175.0 still show in English.
Speed
Gridfinity: a bin or plate drawn through Manifold welds its corners about six times as fast (Discussion #2232): The corners of its pieces were matched with a text per corner; they are now numbered on the grid (manifoldOfTriangles in gridfinityGeometry.ts, with weldFlatScaled), the numbers the same as before. A Swallowtail plate of 12 x 12 units (51,446 triangles into the weld): the weld 4.4 ms instead of 27.9 ms, the whole plate 163 ms instead of 184 ms; of 6 x 6 units 41 ms instead of 49 ms. In a bin with a label, a scoop and compartments the weld is a small part of its 94 ms (measured in Node). Same mesh to the last bit on seven bodies: those plates, that bin, half cells, the GridFlock puzzle, clip notches and an overhang ring. Contributed by @mlugo-apx.
Fixes
A sketch outline that cannot be built says so (Discussion #2305): An outline whose lines cross or touch each other, as an SVG drawn in several overlapping colours often has, was reported as "could not be revolved", although nothing was being revolved. The message now says that the outline could not be built into a valid body, what usually causes it (drawn parts that overlap) and what to do: join the parts in the drawing program or remove the point where the lines touch. The text is translated in every language.
Gridfinity: Clip notches says when a plate has no side for them (#2294): A baseplate that fills a drawer has padding on every side, and a notch is made only on a side without it, so Clip notches changed nothing there, while Add clips laid out clips for notches that were not there. The panel now says why under the switch, and what to do: Split to fit the printer, whose pieces have the notches where they meet, a side's padding at 0, or the padding put on the opposite side with the buttons for it, which keeps the plate's size. Add clips is greyed out on such a plate; clips it already has can still be taken away. The plates themselves stay as they were.
3MF: OrcaSlicer takes the colours of separate bodies (Discussion #2314): A box in one colour and its lid in another came into OrcaSlicer and the slicers built on it on filament 1, both of them: these slicers take a colour only from faces painted with a filament, and the export painted the faces only when one body had several colours. Now every file with more than one colour has each face painted with its colour's filament, in the order the export window lists the colours. A file in one colour is written as before. Guide and FAQ say so in all languages; tests in threemfExport.test.ts.
Twisted round bodies are exact: A cylinder, an ellipse, a round tube or a transition between two round outlines with a twist came out of the kernel wrong or not at all, and so did their STEP files: an ellipse of 20 x 10 x 30 mm twisted by 30 degrees had 1035 instead of 4712 mm³, at 180 degrees the build failed. The round side is now built in four pieces and sewn. Of 150 random round bodies 20 were right before, now all that can be checked are. In the edge tool such a body has four lines up its side now; edges picked on one before may have to be picked again. Outlines with corners or straight sides are built as before.
Rounded box: the shown body matches the exact one when the corner radius and the end radius differ: With upright corners left sharp, the rounding of top and bottom was not shown at all (a box of 40 x 30 x 20 mm with ends of 5 mm showed 24000 instead of 22594 mm³, and 3200 of its 3468 triangles had no area), and with different radii the rounding was drawn as part of an ellipse (up to 12 % too much volume). Now each round has its own radius; the difference to the exact body is below 0.2 %. At quality 1 (bevels) the bevel of top and bottom is as wide as it is high, and is there without a corner radius too: such a body from an older project changes when the two radii differ.
Sweep: a cross-section with curved sides sits where its anchor says: Left, right and the base were measured at the points only, so a side bulging 3 mm put the body 3 mm into the plate or beside its path. The curves count with their outermost points now. A swept body with such a section moves by the bulge when it is built again.
Crescent of 1 mm width or less, and a star with its valleys on the line between two tips: Both had no shape at all (every point not a number). A crescent between 1 and 1.18 mm wide gets a slightly smaller thickness (85 % of its width). The star's exact body drew a rounding 5 mm outside the star there.
A star that is not square keeps its shape when resized: Its inner size and roundings were scaled by the smaller side, though it is drawn by the larger one: a star of 40 x 20 mm scaled to 200 % had 2.77 times the volume instead of 4 times, and a square star pulled wider with one handle got more pointed. Every resize is a pure stretch now.
Changing the height of a turned and mirrored body keeps its base: A body turned and flipped top to bottom grew downwards from its top, 10 mm into the plate for 10 mm more height. Checked for 60 combinations of body, turn and mirror.
Sketch: a construction line at a corner no longer opens the outline: The corner's angle was read as that of an open line (90 instead of 270 degrees in an L), making the corner smooth bent the construction line too, and deleting the corner left the outline open. A point in the middle of a straight side bent to a typed angle went outwards on two sides of a square; it always goes inwards now. Two curves drawn towards the same point keep their shape when that point is deleted.
Sketch: smaller fixes: A stretched sketch body takes its traced pictures along and keeps its sweep anchor and end size. Align leaves an outline with one locked point where it is and lines the others up on it. A side of no length beside a curve no longer takes the curve's bend away. An SVG imported larger or smaller with "keep page position" stays at its place on the page (the page was not scaled with it).
Roof over the bridge lies down at a height too:create_shape with kind roof and an elevation or rotation stood the roof on its triangle (30 mm high instead of 10). It now lies on its flat side with its underside at the elevation, turned about the upright; with rotationX given it is left as asked.
Wrap around a cylinder: a hollow body comes out clean: A body with a closed hollow inside was bent with flat shells without volume left on the cuts between the strips, whose edges belonged to four triangles. A hollow box of 40 x 6 x 10 mm came out as 10 shells instead of 2. Only the outside and the hollow are given out now; the volume is the same.
A slot with one smaller end, longer in depth than in width, is a closed body: Its top and bottom faced inwards, so it could not be cut or grouped properly (a slot of 20 x 40 mm with the small end at half had a third of its volume).
A cone with top and base of the same radius goes into STEP and takes fillets: The kernel refuses such a cone, so the STEP export and the edge tools failed on it; it is now built as the cylinder it is. A cone from an older file without a base radius was exported pointed instead of cut off.
A rounded box from an older file is cut, grouped and exported as drawn: A box carrying a corner radius (only older files have one) was drawn round but cut and grouped as a sharp box, 429 mm³ too much on a box of 20 mm with a radius of 3. It now takes its drawn form; the STEP export leaves it out instead of writing a sharp box.
Grouping and cutting take cylinders, prisms and cones exactly as drawn: A prism of 3, 5 or 6 sides was cut smaller than drawn and turned by half a side (a hexagon of 20 mm was 17.3 mm across), and a round body was cut with 96 sides whatever the view showed. They are now cut with the sides, size and turn that are drawn. Small round holes group faster for it (20 holes of 3 mm: 77 ms to 31 ms), large round bodies slower (20 of 200 mm: 80 ms to 348 ms).
Sketch from cut and sketch from outline: a hole made of arcs only: A hole whose outline has no straight side (an oval, a Reuleaux triangle) could come out crossing itself, with half its area or less.
Sketch: mirroring curves that end on the mirror axis: The copy of a curve ending on the axis shared the handle of the original there and came out bent the wrong way (a half circle mirrored to a full one was up to 4.8 mm off), and a curve from one point on the axis to another was not copied at all. The point on the axis now gets the handle the copy needs, where it is free.
Resizing takes the top of a cone, the top face of a pyramid, a lean and a curved text along: Scaling by percent, the handles and a typed size in the view left these measures as they were (a stretched group did so for a pyramid's top face): a cone scaled to a quarter kept its old top on a quarter of the base, and a curved text fell back to its old size at the next change. They now scale with the body. The size fields of the panel on the right still change only the measure typed.
Transition between sketches: a tiny bevel on one outline: A square onto a square with a corner bevel of 0.064 mm failed, because two points of the outline fell on the same corner.
A text with a font of your own keeps the font after a fillet or chamfer: The file did not take the font along for the body as it was before the edges were treated, so taking the edges back on another computer lost it.
Building with an AI: import_mesh takes the size given, and the body stands where its mesh is:width, depth and height did nothing, and a mesh away from the origin lay outside the box of its body. The mesh stays where its points lie; the answer now gives the body's real position.
Hollow transitions are closed bodies: The two ends of a transition were cut into triangles in a way that dropped rim points lying in a straight line and left triangles without area. A hollow transition, such as one of 20 x 20 mm with corners of 3 mm and a wall of 3 mm, was then no closed body, which showed in cuts, in the print check and in exports. The ends are now cut as a fan, or as a band between the outer rim and the opening; of 196 transitions tried (straight, twisted, tilted, smooth, through more sections) 63 were open before and none is now.
STEP export: stroked, widened and inset sketches, hollowed round bodies and their lids keep their walls: Walls made by moving an outline sideways went into the STEP file as offset curves without the curve they are offset from, and came back without walls or with a wrong volume in other CAD programs. Such bodies are now written with splines; all others keep their planes and cylinders.
Bevel gear: the widest centre hole fits: The largest centre hole the field took came out through the foot of the teeth at the smaller top of a bevel gear, and the gear was no closed body. The limit for a bevel gear now ends just inside that foot. A helical gear with plain teeth and a large hole had end faces with triangles facing inwards; its bore now turns with the teeth.
Hollowing a screw leaves the drive in its head (#1687): With no side open the hollow broke into the hex socket, Torx, cross or slot; with the top open no floor was left under it. The hollow now begins at the floor of the drive.
Align by size leaves a part of locked shape alone (#1277): Align by size resized a part whose shape is locked, and a group holding one. Both keep their size now, and the dots no longer offer it.
Wrap around a cylinder: overlapping parts of a group count once: A plain group of overlapping parts was bent with the overlap in it twice, a third too much volume in one case. The parts are joined before bending.
Sketch from outline and the outline under a sketch: a mesh with a small opening (#791): An imported mesh with a small hole gave no outline, or only the face it stands on. The opening is capped first, as everywhere else.
STEP import: a colour set over a body's own is read: A colour that replaces a body's colour for one use (an overriding style) was ignored.
Sketch: rounding or chamfering a corner with very little room or with a construction line: On a very short side the corner was set back by 0.1 mm even where less was left, and a construction line ending in the corner lost its end point.
Building with an AI: a bent or outlined text in a font of your own has the right size:create_shape measured such a text with the usual font and set the font of your own afterwards.
The Bézier curve bends while you drag, also from a clicked point (Discussion #2286, second video): Dragging out a Bézier point after a point set with a plain click showed the stretch between them straight and only bent it on letting go, because the clicked point gets its handle (a third of the way toward the new point) only then. The preview now takes that same handle, so the curve bends live from the first drag, as it comes out.
Alt with the blue arrow: the original stays and the copy lands where it was let go (#2302): On letting go the original was put back through a change that only got queued, and the copy was made from the shapes as they were at that moment, often still moved. The original then stayed moved and the copy landed twice as far, further below the plate when dragged down. The original now goes back and the copy is made in one step, by the last move the arrow made, and one undo takes the copy away. Esc during such a drag takes the stand-in picture away too.
Alt stays with the editor: Alt on its own no longer reaches the browser outside text fields, so Firefox does not open its menu bar and Chrome on Windows does not move the focus to its menu in the middle of a drag (#2302).
The menu of a design card (Discussion #2278): At 148px wide, longer entries such as "Open without history" wrapped, and the toolbar's history icon took its toolbar size of 34px instead of 16px, so its label stood out of line. The menu is now up to 216px wide, never wider than its card, the icons keep their size, and every label starts in one line with the others.
Resizing in a straight front or side view (#2301): Seen straight from the front, the corner handles stood exactly on the side handles and the near and far handles on each other, so a drag could pick a corner and stretch the body towards the camera, which that view does not show. And a side handle was dragged on the footprint's plane, which a level camera looks along: the pointer hit it far off or not at all, so the drag sometimes did nothing. Within about 10 degrees of looking along a side of the footprint, the corner handles and the handles for that direction are now left out (resizeHandlesSeenEndOn), and in a view within 10 degrees of level a resize handle is dragged on an upright plane facing the camera, its points laid back onto the footprint (resizeDragPlaneForFrame), as the lift arrow does. Unit tests in resizeHandlesSeenEndOn.test.ts.
3MF files in inches, centimetres or metres come in at their size: The unit a 3MF file names (<model unit="...">) was never read, so a file from Fusion 360 in inches came in 25.4 times too small, one in centimetres 10 times and one from Blender in metres 1000 times. Vertices and the offsets of build items and components are now taken in the unit of the model file they stand in, also where a package mixes units over p:path. A design saved before reads its file as it did then (ignoreUnit), so nothing in it moves or changes size.
STEP export: holes in flared, leaning and twisted bodies, and STEP bodies and hinges as holes: Which holes reach a body was asked of the shape's frame, which a box flared wider at the top, a leaning or twisted one and a hinge folded up all leave: their holes were left out of the file without a word (a box flared from 10 to 40 mm kept 14000.0 mm³ instead of 13916.2). The question now goes to the kernel's box of the body as built (builtAabb, under 0.1 ms a body). A hole also takes the same way to its exact body as a solid (buildSourcedBody), so an imported STEP body and a hinge set as a hole cut instead of being reported as left out.
Export: a loose hole cuts a plain group of overlapping parts: In STL, 3MF and OBJ files and in the volume and weight, a hole beside a plain group whose parts overlap took away only one of the two layers there: two blocks of 6000 mm³ with a hole of 1000 mm³ through the overlap were written with 5999.4 mm³ instead of 4999.6, and a group next to a body cut by a hole was written with both its shells. A mesh one triangle short was written uncut. The three places now build their bodies as the editor does (normalizedMeshManifold): small openings capped (#791), overlapping shells joined, a loose shell turned inside out left as it is (Issue #1781).
Cut out with a clearance: tapered, twisted and leaning texts, key ring holes and backs (since 1.188.0): The quick way of 1.188.0 grew the letters only. A text with a taper, twist or lean, with a key ring hole or with a text or fill on its back then touched its own cavity (no clearance left instead of 0.5 mm). Those go through the kernel again; plain, curved, multi-line and upright texts, and ones with a silhouette, an edge or a flush pocket, measured 0.499 mm and keep the quick way.
Knurl: short grips and large chamfers as exact bodies: A knurl 3 mm high with the standard chamfer of 0.5 mm, and a tapered or leaning knurl with a chamfer of a quarter of its height or more, failed to build as an exact CAD body (makeLineEdge: construction failed) and fell back to its mesh. The cones that cut the chamfer now stop short of the middle of the grip.
Split: the label at the handle counts like the Position field (since 1.188.0): Dragging a cut across Y, the panel counted 0 to -5 mm while the label at the handle showed +5.00 mm. Panel and label now take the sign from one place (splitShownPosition).
Several parts at once: the wall of tubes and rings (since 1.188.0): The wall thickness of several tubes or rings selected together was missing from the panel, as the list of sizes named a field that does not exist. A test now holds every name in that list against the panel of a single part.
Saving: a failure while packing a body is not kept: When encoding a body failed once, for want of memory, the failed result stayed in the cache and every later save of the design failed with it until the page was loaded again. And a design with one exact body of more than 48 MiB of text encoded all its bodies anew on every save; such a body now has a place of its own.
MCP: layerling_update_object on a loft keeps the place given: A call that changed a loft's measures and gave x, z or elevation as well had its place put back to where the loft stood.
CAD kernel occt-wasm 5.22.4 (from 5.21.0): The package now carries the LGPL licence, the OCCT exception and the pointer to the source, and they are copied beside the kernel (/occt/<version>/). Invalid input to a sweep is refused instead of faulting, and assemblies for STEP are built faster. Checked as for every kernel: the herringbone gear fillet, the whole kernel test run, and an install with npm 10. With 5.22.2 to 5.22.4 three faults reported from layerling are fixed in the kernel (andymai/occt-wasm#551, #552, #553): a fillet or chamfer that gives a broken body is refused instead of returned, a failed offset says so instead of giving an empty shape, and a fillet after a stretch is right - the middle edges of a herringbone gear with 6, 7, 9 or 11 teeth lost up to 0.68 % of the volume and now lose none.