From 71feedc6cec0e0dbec4177961a65116f98c629a3 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Thu, 2 Oct 2025 15:54:18 +0200 Subject: [PATCH] fix(router/prenavmesh): Don't fillet-exclude origin and destination from prenavmesh --- src/router/prenavmesh.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/router/prenavmesh.rs b/src/router/prenavmesh.rs index eaccc4e..641dc20 100644 --- a/src/router/prenavmesh.rs +++ b/src/router/prenavmesh.rs @@ -216,11 +216,10 @@ impl Prenavmesh { // TODO: This method is simplistic and will obviously result in // false positives in some cases, so in the future, instead of this, // create a fillet compound type and check for compound membership. - if Self::is_fixed_dot_filleted(layout, dot) { - // FIXME: anteroute dot may get skipped here, which - // results in a panic. - assert_ne!(origin, dot); - assert_ne!(destination, dot); + if node != origin.into() + && node != destination.into() + && Self::is_fixed_dot_filleted(layout, dot) + { continue; }