Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
For Discussion #2236: the magnet holes in a baseplate that @Joepic9 asked for, the follow-up to #2248 you agreed there.
Summary
gridfinityMagnets,gridfinityType,gridfinitySwallowtail,gridfinityClipNotchesandgridfinityPaddingBack. Changelog entry under a new Gridfinity section and a What's new card.How it is built
gridfinityGeometry.ts: the plan getsplateFloor(Swallowtail's, the magnets', or none), read where the plate's floor wasswallowtail ? 2.4 : 0(the mesh, the half sockets, the clip seat, the exact body's sockets) and passed togridfinitySize, so the footprint, the shape patch and split pieces come out 8.6 mm;shapeCatalog.tshands the flag to the toolbar's new plate, as it does Swallowtail. The whole cells' holes are drawn into the plate's own triangles with the loop the bin's feet already had, now amagnetHoleclosure both use (the bin's mesh is the same to the last bit); the half cells' holes are cut by Manifold with their half sockets. The exact body (gridfinitySolid.ts) cuts all holes in the same cutAll as the sockets.ShapeInspector.tsx: the switch, as Swallowtail's, through the shape patch, so one click is one step to undo; the hint under the settings as the Swallowtail and clip-notch hints.Testing
On d2ce3d171, on main at cf0b0f8.
npm run typecheck,npm run buildandnpm run exportnpm test(8,414 of 8,415 tests in 893 files) andnpm run test:e2e(2,292 in 268). The one that fails,ag7Vase.test.ts("says for every outline what all rays against all edges say"), is the one I mentioned on Gridfinity: a compartment's size is no longer hidden under the move arrows (Discussion #1799) #2268: it timed out at 5 s here, fails in some full runs on main as well and passes on its own (again on d2ce3d171).gridfinityGeometry.test.ts: floor, height and patches; the hole places (a 3 x 2 plate's 24 are a 3 x 2 bin's; all 36 of a 2 x 2 plate with half cells all round, worked out by hand); the volumes by hand (2 x 1, 3 x 2, Swallowtail, a row of half cells); closed meshes in one piece for 11 cases up to 12 x 12; the clip seat; the toolbar's plate.gridfinityPuzzle.test.ts: puzzle pieces with magnets, closed raw and welded, no puzzle part within 0.5 mm of a hole (the nearest is 2.41 mm).cadGridfinityShape.e2e.ts: magnet plates as one valid solid with the mesh's volume and box, the exact volume by hand, every hole where the plan has it on a plate with half cells at the back, 12 x 12 with its 576 holes, a bin with magnets seated in a magnet plate.gridfinityPaddingPanel.e2e.ts: the switch above Swallowtail, none on an outline plate, one patch per click (8.6, 7.4 with Swallowtail, 5), the hint only on a magnet plate.list_edges), on 4f7f61ed2 with clip notches: 9.9 s without magnets, 9.7 s with. During the build, with the same exact-body code on an earlier commit: 9.3 / 8.7 s without, 9.3 / 9.0 s with; an edge-tool chamfer of the outer rim took 10.7 s, and a fillet the kernel refuses was refused in 22.7 s. Display mesh in Node, measured by a reviewer on an earlier commit with the same geometry: plain 22 -> 28 ms (no Manifold); with Swallowtail 128 -> 311 ms, half cells all round 320 -> 535 ms, both 296 -> 560 ms, from about 51,000 to 125,000 triangles going into Manifold.Notes
gridfinityMagnets(a bin with magnet holes made into a baseplate, defaults saved on one, or an MCP plate given the flag) gets the floor and the holes once it is opened again, and bins standing on it end up 3.6 mm in it. The changelog says so; if you would rather a bin's flag not carry over, the type change ingridfinityShapePatchis where to drop it; plates already saved with it would still need a step when a file is opened.🤖 Generated with Claude Code