Skip to content

Commit

Permalink
add fixed segment separation to routing
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcl committed Aug 6, 2023
1 parent 45e5867 commit f047857
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Renderer/DrawBlock/BusWireSeparate.fs
Original file line number Diff line number Diff line change
Expand Up @@ -924,11 +924,11 @@ let separateAndOrderModelSegments (wiresToRoute: ConnectionId list) (model: Mode
// after normal separation there may be "fixed" segments which should be separated because they overlap
// one run for Vert and then Horiz segments is enough for this
// TODO - include a comprehensive check for any remaining overlapping wires after this - and fix them
//|> separateFixedSegments wiresToRoute Horizontal
//|> separateFixedSegments wiresToRoute Vertical
|> separateFixedSegments wiresToRoute Horizontal
|> separateFixedSegments wiresToRoute Vertical

// after the previous two phases there may be artifacts where wires have an unnecessary number of corners.
// this code attempts to remove sucg corners if it can be done while keeping routing ok
// this code attempts to remove such corners if it can be done while keeping routing ok

|> removeModelCorners wiresToRoute // code to clean up some non-optimal routing

Expand Down

0 comments on commit f047857

Please sign in to comment.