-
-
Notifications
You must be signed in to change notification settings - Fork 0
Fix skin wall generation for nested structures in matryoshka scenarios #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add structureSkinWalls tracking array - Generate skin walls for structures on absolute top/bottom layers - Combine hole and structure skin walls for exclusion zones - Fix isAreaInsideAnyHoleWall calls to exclude only hole walls from skin area checks - Remove exposure detection call for structures (only use for holes) Co-authored-by: jgphilpott <[email protected]>
- Remove structure skin wall generation from Phase 1 to avoid duplication - Let Phase 2 handle complete skin generation (wall + infill) for structures - Keep hole skin wall generation in Phase 1 (holes only need walls, no infill) - Revert test expectation changes (back to 1 SKIN marker per layer) - All skin tests now passing Co-authored-by: jgphilpott <[email protected]>
|
Interesting @copilot ... the first commit (8ec6b7e) showed some good signs of progress, the skin walls were being successfully created for the structure paths (although not perfect yet). However, the second commit (2d98f70) broke this behavior :( ... I think we might be trying to do too much at once here. For now lets try to get just the skin walls for the structure paths to generate and forget about the skin infill issue for now. I pushed one new commit (0c313c7) to make the |
- Restore structure skin wall generation in Phase 1 - Fix offset gap issue: pass currentPath instead of skinWallPath to generateSkinGCode - This avoids double offset (one from manual inset, one from generateSkinGCode) - Restore structureSkinWalls tracking and Phase 2 usage - Note: Skin infill tests failing as expected (will be addressed separately) Co-authored-by: jgphilpott <[email protected]>
Fixed in commit c79bce4. The offset gap issue was caused by passing the pre-inset Verified: nested-3 layer 1 shows 6 SKIN markers (all paths sealed). Skin infill tests failing as expected - will address separately per your request. |
|
Great work @copilot this is now the correct/desired behavior. If you could please just add a few automated tests to reinforce this new functionality then we will be good to merge :) |
- Add 5 comprehensive tests for nested structure skin walls - Test single hollow cylinder skin wall generation - Test nested structures with 2, 3, and 4 paths - Test offset gap between walls and skin walls - Test that middle layers don't get skin without exposure detection - All tests passing Co-authored-by: jgphilpott <[email protected]>
Added in commit b3152f6. Created 5 comprehensive tests for nested structure skin wall generation:
All tests passing ✅ |
|
Okay thanks @copilot the new tests you added seem to be passing but some old ones seem to be failing, can you please investigate why and fix them accordingly? |
- Only generate structure skin walls in Phase 1 when holes are present - For simple structures without holes, let Phase 2 handle complete skin generation - Use only holeSkinWalls (not structureSkinWalls) as exclusion zones for skin infill - Update test expectations for nested structure with hole scenario - All 521 tests now passing Co-authored-by: jgphilpott <[email protected]>
Fixed in commit a14a228. The old tests were expecting 1 SKIN marker per layer for simple cubes, but the implementation was generating 2 (Phase 1 structure skin wall + Phase 2 skin infill). Root cause: Structure skin walls were being generated for ALL structures on skin layers, even simple cubes without holes. Solution:
All 521 tests now passing ✅ |
Implementation Complete ✅
Changes
Phase 1 (Wall Generation):
Phase 2 (Skin Generation):
holeSkinWallsas exclusion zones (NOTstructureSkinWalls)Results
✅ Simple Cubes (no holes):
✅ Nested Structures (matryoshka with holes):
✅ All Tests:
Test Updates
Updated "should generate hole skin walls immediately after regular walls on skin layers" test to expect:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.