fix is_empty_volume test

This commit is contained in:
Quaternions 2024-09-25 09:58:38 -07:00
parent 327ba10fb4
commit f280b65fc9

View File

@ -969,7 +969,7 @@ fn is_empty_volume(normals:Vec<Vector3<Fixed<3,96>>>)->bool{
if k!=i&&k!=j{ if k!=i&&k!=j{
let d=n.dot(normals[k]); let d=n.dot(normals[k]);
if let Some(comp)=&d_comp{ 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; return true;
} }
}else{ }else{