Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiboSoftwareDev committed Dec 9, 2024
1 parent 52123b5 commit 991eb1c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions module/lib/solver-utils/getObstaclesFromCircuitJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
generateApproximatingRects,
type RotatedRect,
} from "./generateApproximatingRects"
import { su } from "@tscircuit/soup-util"

const EVERY_LAYER = ["top", "inner1", "inner2", "bottom"]

Expand All @@ -21,7 +20,6 @@ export const getObstaclesFromCircuitJson = (
)
: idList
const obstacles: Obstacle[] = []
const db = su(soup)
for (const element of soup) {
if (element.type === "pcb_smtpad") {
if (element.shape === "circle") {
Expand Down Expand Up @@ -57,19 +55,6 @@ export const getObstaclesFromCircuitJson = (
rotation: element.ccw_rotation,
}
const approximatingRects = generateApproximatingRects(rotatedRect)
for (const rect of approximatingRects) {
db.pcb_smtpad.insert({
type: "pcb_smtpad",
shape: "rect",
layer: "bottom",
x: rect.center.x,
y: rect.center.y,
width: rect.width,
height: rect.height,
} as any)
}
console.log(element)
console.log(approximatingRects)
for (const rect of approximatingRects) {
obstacles.push({
type: "rect",
Expand Down

0 comments on commit 991eb1c

Please sign in to comment.