Skip to content

Features/construction sequences#585

Open
chrxh wants to merge 23 commits intodevelopfrom
features/ConstructionSequences
Open

Features/construction sequences#585
chrxh wants to merge 23 commits intodevelopfrom
features/ConstructionSequences

Conversation

@chrxh
Copy link
Copy Markdown
Owner

@chrxh chrxh commented Apr 8, 2026

No description provided.

Copilot AI and others added 23 commits April 8, 2026 13:34
…redNodeId3 support

- Add requiredNodeId3 to ShapeGeneratorResult
- Rewrite generateNextConstructionDataForHexagon with zig-zag algorithms
- Add getHexagonAngle, getHexagonRequiredNodeId1/2/3 helper methods
- Add generateNextConstructionDataForSpiralHexagon for Lolli/SmallLolli (decoupled)
- Add requiredNodeId3 support to ConstructorProcessor.cuh
- Fix angle algorithm: prepend 0 at position 0, shift rest by -1

Agent-Logs-Url: https://github.com/chrxh/alien/sessions/2e221092-2686-412f-8e14-15981d4a848d

Co-authored-by: chrxh <73127001+chrxh@users.noreply.github.com>
- Use 1-based indexing with firstIndex = 1 + 3*(k-1)*k instead of --n
- Fix ring-finding loop to start at k=1 with condition 1 + 3*k*(k+1) <= n
- Fix side 2 for odd k: alternating -120/+120 with last two values +60, +120

Agent-Logs-Url: https://github.com/chrxh/alien/sessions/5baa12cc-b860-4ab1-8d9e-d91dd10a8aec

Co-authored-by: chrxh <73127001+chrxh@users.noreply.github.com>
Fix ShapeGenerator::getHexagonAngle index calculation and side 2 pattern
…ulation

Fix getHexagonRequiredNodeId3 for high ring values
Fix getHexagonRequiredNodeId1 case 3 condition for all even rings
…id-algorithm

Fix getHexagonRequiredNodeId2 formulas for even-k rings
Replace three separate getHexagonRequiredNodeId1/2/3 methods with a single
unified getHexagonRequiredNodeIds method implementing the correct algorithm.

Two key fixes from the original pseudocode:
1. All n-relative references use n-2/n-3 instead of n-1/n-2
2. C2 segment formulas use D+5s-2 based calculations instead of Dp-based

Agent-Logs-Url: https://github.com/chrxh/alien/sessions/b719d3ee-28a1-4698-8bed-6fa47d8a5ca2

Co-authored-by: chrxh <73127001+chrxh@users.noreply.github.com>
…xagonConstructionData method

Merge the two separate hexagon helper methods into a single
getHexagonConstructionData(int n) that returns a complete
ShapeGeneratorResult with both angle and required node IDs.
Uses a shared base table for n<=21 containing both angle and
node ID data, eliminating the separate lookup tables.

Agent-Logs-Url: https://github.com/chrxh/alien/sessions/26b8ddd9-67b1-46f8-a642-d7f54aaeba32

Co-authored-by: chrxh <73127001+chrxh@users.noreply.github.com>
…rHexagon

Merge the separate helper method into the single hexagon construction
method. Ring decomposition (angle) and shell decomposition (node IDs)
now flow together in one method without separate scoped blocks.

Agent-Logs-Url: https://github.com/chrxh/alien/sessions/e3cb635f-3518-449e-92cb-7503c19f6df4

Co-authored-by: chrxh <73127001+chrxh@users.noreply.github.com>
…odeid

Unify hexagon construction data: merge angle + nodeId methods into single flow
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