Repository navigation
Conversation
In the print layout a part that bends on a living hinge is made bent and without the hinge's cuts: living_hinge() repeats its cuts on a layer of its own, so the cuts of a hinge are told from a part's other cuts, which stay. A bent part on its own or in a stack stands on its lower edge as one object with what is glued on it. meshBodies() and toModel() take hinges to choose. The laser's files and the other layouts are unchanged.
symbol(solid = true) engraved the silhouette less the drawing, which includes the fillet that closing leaves in every inside corner of the outline: slivers along the edge of a plain silhouette, which printed as loose flakes with open meshes. The engraving now leaves that rounding out, and anything under a tenth of a millimetre wide. close() takes sharp = true to close gaps without rounding inside corners.
A bent part was built from bands with walls between them inside, so a slicer saw four faces on an edge. The bands now join edge to edge with no wall at a seam, and a strip bent round to meet itself has none where its ends meet. Areas that touch at a corner are drawn a hundredth of a millimetre apart there, so each is a closed solid.
Strips of an area thinner than 0.004 mm and corners closer than a 3D file holds came out as faces with no thickness, or as edges with four faces. Each area is opened by that much, put on a grid of a thousandth of a millimetre and joined again before it is extruded. A hole that touches an edge or another hole gives way at that corner, the ends of a strip bent into a full circle are welded to the same corners, and a bend that ends at the edge of its part leaves no band of no width beyond it.
meshBodies() adds matrix to a part or mark body: the 4 x 4 matrix, row by row as the assembly's, from the part's own coordinates to the body's in the layout, so a program can place the outline itself in the print or flat layout. A part bent on a living hinge has none.
JulyJ
added a commit
that referenced
this pull request
Dec 3, 2026
…es (#16) In the print layout a part that bends on a living hinge prints solid, in its bent shape, with the hinge's cuts left out. symbol(solid = true) engraves only the drawing's detail, not slivers in the rounded corners of its outline, and close(r, sharp = true) leaves inside corners as drawn. Bent parts with marks, strips bent round to meet themselves and areas that touch at a corner are closed solids. Each part and mark body of meshBodies() has matrix; meshBodies() and toModel() take hinges. Laser output is unchanged; language stays 0.3.
Contributor
Author
|
Merged into main as e8d755c. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
KerfScript 0.13.1: fixes for the 3D files, mostly the print layout.
living_hinge()andflex_rect()are left out of it.symbol(solid = true)engraves only the drawing's detail, not slivers in the rounded inside corners of its outline.close(r, sharp = true)closes gaps and leaves inside corners as drawn.meshBodies()hasmatrix;meshBodies()andtoModel()takehinges; a mark that is a living hinge's cuts hashinge: true.Laser output is unchanged; the language stays 0.3.
npm run check: 934 pass, 0 fail, 9 skipped (wasm not built).