T
tscircuit2mo ago
0hmx

0hmx - Any idea on how we can untangle this! Li...

Any idea on how we can untangle this! Like, I am not getting any idea! What could be the condition
No description
15 Replies
Seve
Seve2mo ago
None that are easy to explain haha. Try thinking about how to “flip” two lines and measure the number of intersections You can then do “operation-path A*” to optimize for the best operations for the lowest cost
0hmx
0hmxOP2mo ago
If Gemini explained to me correctly, my last try was pretty close to your comment! Like flipping to form an inverted L, I guess my logic to find the points for flipping is bad, or I need to debug more
Seve
Seve2mo ago
Err sorry , dont flip. The operation should take two lines or segments as input and swap how they overlap
! Rushabh | Linux Shill
just a thought, we can count the number of times two traces intersects if it is an ever number we can untangle it by moving one trace in opposite direction from the other same issue here https://github.com/tscircuit/schematic-trace-solver/issues/83 we can add another step it solver to implement this, i think
Seve
Seve2mo ago
Yes something like that It has to be tested etc
! Rushabh | Linux Shill
i struggled with this for a day, then gave up 💀
Seve
Seve2mo ago
Yea it isnt easy Big contribution though
! Rushabh | Linux Shill
while i was trying that i found that some labels were overlapping
Seve
Seve2mo ago
yea it's not easy
0hmx
0hmxOP2mo ago
@Seve GraphicsObject rendering, specifically for lines and points: Does the rendering logic implicitly round or snap x and y coordinate values to a pixel grid or any other discrete unit? I am observing mathematical line intersections that don't visually appear to collide, and I think rendering precision could be a factor.
Sapphire
Sapphire2mo ago
:warning: Please avoid using excessive mentions, as it creates unnecessary notifications and disrupts others — use mentions only when truly needed to keep the discussion focused and respectful; repeated misuse may lead to moderation action.
0hmx
0hmxOP2mo ago
Editing the message multiple times could also trigger the bot. igs
Seve
Seve2mo ago
It shouldnt Ive never seen snapping
0hmx
0hmxOP2mo ago
Hell ya! we did it! going to take some time to optimze the algo and add extra test case but we golden
No description
0hmx
0hmxOP2mo ago
its wokring!!!!

Did you find this page helpful?