From b65b7e72c2b39ecf4d9d0d6a87a7518185ff4e00 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 19 Oct 2023 12:12:49 +0200 Subject: [PATCH] Match order of validation errors and checks --- crates/fj-core/src/validate/shell.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/fj-core/src/validate/shell.rs b/crates/fj-core/src/validate/shell.rs index 5afb27f48..550552743 100644 --- a/crates/fj-core/src/validate/shell.rs +++ b/crates/fj-core/src/validate/shell.rs @@ -35,10 +35,6 @@ pub enum ShellValidationError { )] CurveCoordinateSystemMismatch(Vec), - /// [`Shell`] is not watertight - #[error("Shell is not watertight")] - NotWatertight, - /// [`Shell`] contains edges that are coincident, but not identical #[error( "`Shell` contains `Edge`s that are coincident but refer to different \ @@ -70,6 +66,10 @@ pub enum ShellValidationError { surface_b: Handle, }, + /// [`Shell`] is not watertight + #[error("Shell is not watertight")] + NotWatertight, + /// [`Shell`] contains faces of mixed orientation (inwards and outwards) #[error("Shell has mixed face orientations")] MixedOrientations,