feat: add bayonet_mount() and bayonet_socket() twist-lock joiners (#1323)#1961
Open
junhinhow wants to merge 1 commit intoBelfrySCAD:masterfrom
Open
feat: add bayonet_mount() and bayonet_socket() twist-lock joiners (#1323)#1961junhinhow wants to merge 1 commit intoBelfrySCAD:masterfrom
junhinhow wants to merge 1 commit intoBelfrySCAD:masterfrom
Conversation
…lfrySCAD#1323) Adds two new modules to joiners.scad for bayonet-style connections: - bayonet_mount(d, h, pin_h, pins, pin_ang, taper_ang, clearance, wall): Creates radial pins on a cylindrical surface for twist-lock joints. Supports taper for friction locking, variable pin count, and configurable tolerances. Compatible with attachable(). - bayonet_socket(d, h, pin_h, pins, pin_ang, clearance, wall): Creates matching L-shaped slots to receive mount pins. Vertical entry + horizontal locking channel. Automatic clearance for 3D printing fit. Both follow BOSL2 patterns: attachable(), parameter validation, full documentation with Synopsis/SynTags/Topics/Examples. Tests added in test_joiners.scadtest covering pin variants, taper, clearance and dimensions.
c715759 to
2850e3c
Compare
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.
Summary
bayonet_mount()module: creates radial pins on a cylinder for twist-lock jointsbayonet_socket()module: creates L-shaped slots (vertical entry + horizontal lock channel)bayonet_mount()— insert vertically, twist to lockattachable(), full parameter validation, and complete documentationTest plan
bayonet_mount()generates valid geometry (3-pin, 4-pin with taper, 2-pin wide angle)bayonet_socket()generates valid geometry (3-slot, 4-slot, custom clearance)Addresses #1323
🤖 Generated with Claude Code