From f280b65fc9e67a65138ec5858bcf5be26f4692a4 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 25 Sep 2024 09:58:38 -0700 Subject: [PATCH] fix is_empty_volume test --- src/model_physics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model_physics.rs b/src/model_physics.rs index 87a44c2..6c1cbbb 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -969,7 +969,7 @@ fn is_empty_volume(normals:Vec>>)->bool{ if k!=i&&k!=j{ let d=n.dot(normals[k]); if let Some(comp)=&d_comp{ - if comp.is_negative()&&d.is_negative()||comp.is_positive()&&d.is_positive(){ + if comp.is_negative()^d.is_negative(){ return true; } }else{