Skip to content

feat: add shift= parameter to hex_panel()#1970

Open
junhinhow wants to merge 1 commit intoBelfrySCAD:masterfrom
junhinhow:feat/hex-panel-shift-1855
Open

feat: add shift= parameter to hex_panel()#1970
junhinhow wants to merge 1 commit intoBelfrySCAD:masterfrom
junhinhow:feat/hex-panel-shift-1855

Conversation

@junhinhow
Copy link
Copy Markdown

@junhinhow junhinhow commented Apr 6, 2026

Summary

  • Adds shift=[x,y] parameter to hex_panel() to offset the hex grid pattern
  • Useful for aligning hex patterns across adjacent panels sharing an edge
  • Grid oversized by 2*spacing to ensure full coverage after shifting
  • Documentation and example updated

Closes #1855

Test plan

  • Verify hex_panel([80, 60, 5], 1.5, 10, frame=3, shift=[5,5]) renders correctly
  • Verify default shift=[0,0] produces identical output to before
  • Verify shift works with beveled panels
  • Verify shift works with polygon-shaped panels

…#1855)

Add shift=[x,y] parameter to hex_panel() to control the starting
position of the honeycomb pattern within the panel.

Useful for aligning hex patterns across adjacent panels that share
an edge.

Changes:
- New shift=[0,0] parameter in hex_panel()
- Parameter passed to _honeycomb() helper
- Grid oversized by 2*spacing to ensure full coverage after shifting
- Documentation and example updated
@junhinhow junhinhow force-pushed the feat/hex-panel-shift-1855 branch from 032f429 to a321b47 Compare April 6, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wall pattern starting point?

1 participant