Skip to content

Conversation

@0hmX
Copy link
Contributor

@0hmX 0hmX commented Dec 17, 2025

No description provided.

0hmX added 5 commits December 17, 2025 21:59
- Remove GapFillSubSolver and all grid-based gap detection code
- Remove old gap fill engine files (stepGapFill, initGapFillState, etc.)
- Remove gap detection algorithms (findAllGaps, findGapsOnLayer, etc.)
- Keep only utility functions (calculateCoverage, findUncoveredPoints)
- Create BasePipelineSolver abstract class
- Provides standard pattern for multi-phase solvers
- Handles phase transitions and step execution
- Abstract methods: getCurrentPhase, setPhase, stepPhase
- Implement edge extraction from placed rectangles
- Find nearby parallel edges within distance threshold
- Detect unoccupied segments along edges
- Generate expansion points outside unoccupied segments
- Extremely granular stages for visualization:
  * SELECT_EDGE: Select primary edge
  * FIND_NEARBY: Find nearby parallel edges
  * FIND_SEGMENTS: Find unoccupied segments
  * GENERATE_POINTS: Generate expansion points
  * EXPAND_FROM_POINT: Expand rectangles from points
- Convert RectDiffSolver to use BasePipelineSolver
- Integrate edge-based gap fill in GAP_FILL phase
- Add comprehensive visualization for gap fill stages:
  * Primary edge (red), nearby edges (orange)
  * Unoccupied segments (green), expansion points (blue/red)
  * Expanding rectangles (yellow)
- Export buildHardPlacedByLayer for gap fill use
- Remove GapFillOptions, GapRegion, GapFillState types
- Keep only LayerContext for utility functions
- Update engine exports to only include utility functions
@vercel
Copy link

vercel bot commented Dec 17, 2025

@0hmX is attempting to deploy a commit to the tscircuit Team on Vercel.

A member of the Team first needs to authorize it.

@0hmX 0hmX changed the title Replace grid-based gap fill with edge-based algorithm Replace grid-based gap fill with edge-based algorithm & and remove the old gapfill Dec 17, 2025
@vercel
Copy link

vercel bot commented Dec 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
rectdiff Ready Ready Preview, Comment Dec 17, 2025 4:34pm

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.

1 participant