Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ShiboSoftwareDev
Copy link
Contributor

@ShiboSoftwareDev ShiboSoftwareDev commented Nov 5, 2025

This pull request implements the core logic for the copper pour solver. It introduces a complete
pipeline that takes a circuit-json input and generates B-Rep shapes for the copper pour regions.

Key changes include:

• Copper Pour Solver Implementation: The CopperPourPipelineSolver is built out to process
obstacles, perform boolean geometry operations using flatten-js, and generate final B-Rep
shapes.
• Circuit JSON Conversion: A new function convertCircuitJsonToInputProblem is added to
translate standard circuit-json elements (pads, traces, holes) into the solver's internal
InputProblem format.
• Comprehensive Testing: A suite of snapshot tests has been added, rendering the output of the
solver to SVG for multiple circuit configurations to visually validate the results.
• Type Definitions: Updated lib/types.ts to support various pad shapes (rect, circle, trace)
and define the solver's input and output structures.
• Dependency Updates: Added @flatten-js/core for geometric calculations and circuit-to-svg for
test rendering.

@ShiboSoftwareDev ShiboSoftwareDev changed the title functional solver feat: Implement copper pour solver pipeline Nov 5, 2025
@seveibar seveibar merged commit acf63da into tscircuit:main Nov 5, 2025
@tscircuitbot
Copy link
Contributor


Thank you for your contribution! 🎉

PR Rating: ⭐⭐⭐
Impact: Major

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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.

3 participants