Skip to content

Conversation

@lau90eth
Copy link

@lau90eth lau90eth commented Nov 4, 2025

Closes #87

Fase 1: Riproduzione

  • Usa examples → example01-basic in Cosmos
  • Modifica il JSON per creare 2 connessioni crociate tra chip distanti (x=10)
  • Vedi linee che si incrociano

Fase 2: Soluzione

  • src/solvers/UntanglingSolver.ts: aggiunge "jog" alle tracce orizzontali lunghe (>3 unità)
  • Pronto per integrazione nel pipeline

Risultato

Test JSON:

{
  "problem": {
    "chips": {
      "U1": { "center": { "x": 0, "y": 0 }, "pins": [ { "pinId": "A", "x": -1.5, "y": 0.8 }, { "pinId": "B", "x": -1.5, "y": -0.8 } ] },
      "U2": { "center": { "x": 10, "y": 0 }, "pins": [ { "pinId": "X", "x": 1.5, "y": 0.8 }, { "pinId": "Y", "x": 1.5, "y": -0.8 } ] }
    },
    "directConnections": [
      { "pinIds": ["A", "X"] },
      { "pinIds": ["B", "Y"] }
    ]
  }
}

@vercel
Copy link

vercel bot commented Nov 4, 2025

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

Project Deployment Preview Comments Updated (UTC)
schematic-trace-solver Ready Ready Preview Comment Nov 4, 2025 10:26am

@lau90eth lau90eth changed the title fix #87: untangling phase to reduce trace crossings Type-check fix: Added src/types.ts with the TraceLine interface to resolve TS2307 Nov 4, 2025
@lau90eth
Copy link
Author

lau90eth commented Nov 4, 2025

Fixed in PR #321

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.

"Untangling" phase or "minimize trace crossing when separating traces"

1 participant