From 714a6a0ef023ff6f6444ad3bf531de7a22c97850 Mon Sep 17 00:00:00 2001 From: A-Walrus Date: Thu, 3 Aug 2023 17:24:11 +0300 Subject: [PATCH] Check orientations using boundaries --- crates/fj-core/src/validate/shell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/fj-core/src/validate/shell.rs b/crates/fj-core/src/validate/shell.rs index 712ba5df3..e4882503f 100644 --- a/crates/fj-core/src/validate/shell.rs +++ b/crates/fj-core/src/validate/shell.rs @@ -371,7 +371,7 @@ impl ShellValidationError { for (_, halfs) in global_to_half { if let (Some(a), Some(b)) = (halfs.get(0), halfs.get(1)) { // Check if a is reverse of b - if a.start_vertex().id() == b.start_vertex().id() { + if a.boundary().reverse() != b.boundary() { errors.push(Self::MixedOrientations.into()); dbg!(a, b); return;