Skip to content

Commit 1e84801

Browse files
committed
filter out unresolvable NWM T intersection rules
1 parent bce8197 commit 1e84801

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/scala/module/CrossingGenerator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ trait CrossingGenerator extends Adjacencies { this: RuleGenerator =>
3030
Rules += main~WE~EW | (base ~> main)~WE~EW & orient(minor~ES) // OxD
3131
Rules += main~SE~ES | (base ~> main)~WN~NW & orient(minor~NS) // DxO
3232
Rules += main~SE~ES | (base ~> main)~WN~NW & orient(minor~NE) // DxD
33-
if (main.isNwm) {
33+
if (main.isNwm && !minor.isRhw) withResolvableRulesOnly { // T intersections are not defined for all network combinations
3434
Rules += main~WE~EW | (base ~> main)~WE~EW & orient(minor~CS) // OxO T 1
3535
Rules += main~WE~EW | (base ~> main)~WE~EW & orient(minor~NC) // OxO T 2
3636
}

0 commit comments

Comments
 (0)