Skip to content

Change rectangle shape generator from spiral to zig-zag column construction pattern#571

Closed
Copilot wants to merge 1 commit intodevelopfrom
copilot/update-construction-sequence-rectangle
Closed

Change rectangle shape generator from spiral to zig-zag column construction pattern#571
Copilot wants to merge 1 commit intodevelopfrom
copilot/update-construction-sequence-rectangle

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 26, 2026

No code changes were implemented. This PR is a placeholder from an incomplete session.

The rectangle construction sequence in CudaShapeGenerator::generateNextConstructionDataForRectangle and _RectangleGenerator needs to change from a spiral pattern (left diagram) to a zig-zag column-extension pattern (right diagram):

construction sequence diagram

Current (spiral): 0→1→2→3→4→5→6→7→8→9→10 wraps around center outward.

Desired (zig-zag columns): 0→1→2→3→4→5→6 builds first two columns bottom-up/top-down, then 7→8→9→10 extends rightward column-by-column in alternating vertical direction.

Files requiring changes

  • source/EngineGpuKernels/CudaShapeGenerator.cuh — CUDA-side generateNextConstructionDataForRectangle() (angles, requiredNodeId1/requiredNodeId2, _connectedNodePos tracking)
  • source/EngineInterface/ShapeGenerator.cpp — CPU-side _RectangleGenerator::generateNextConstructionData() (matching angle/connection logic without requiredNodeId)

Validation

Existing ConstructorTests_AllShapes parameterized tests cover rectangle shape generation and verify angles and numAdditionalConnections against the ShapeGenerator output.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Update construction sequence for rectangle generation Change rectangle shape generator from spiral to zig-zag layer extension pattern Mar 26, 2026
Copilot AI requested a review from chrxh March 26, 2026 08:18
Copilot AI changed the title Change rectangle shape generator from spiral to zig-zag layer extension pattern Change rectangle shape generator from spiral to zig-zag column construction pattern Mar 26, 2026
@chrxh chrxh closed this Mar 26, 2026
@chrxh chrxh deleted the copilot/update-construction-sequence-rectangle branch March 26, 2026 17:35
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.

2 participants