From 991eb1c409656b70783daa80ab84f29943663f6e Mon Sep 17 00:00:00 2001 From: Shibo Date: Mon, 9 Dec 2024 21:40:26 +0200 Subject: [PATCH] cleanup --- .../solver-utils/getObstaclesFromCircuitJson.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/module/lib/solver-utils/getObstaclesFromCircuitJson.ts b/module/lib/solver-utils/getObstaclesFromCircuitJson.ts index 18d01b4..3597674 100644 --- a/module/lib/solver-utils/getObstaclesFromCircuitJson.ts +++ b/module/lib/solver-utils/getObstaclesFromCircuitJson.ts @@ -6,7 +6,6 @@ import { generateApproximatingRects, type RotatedRect, } from "./generateApproximatingRects" -import { su } from "@tscircuit/soup-util" const EVERY_LAYER = ["top", "inner1", "inner2", "bottom"] @@ -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") { @@ -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",