deref bool

This commit is contained in:
Quaternions 2025-01-21 08:49:44 -08:00
parent c2f78eab48
commit c7575f2e21

View File

@ -984,7 +984,7 @@ fn is_empty_volume(normals:Vec<Vector3<Fixed<3,96>>>)->bool{
for k in 0..len{ for k in 0..len{
if k!=i&&k!=j{ if k!=i&&k!=j{
let d=n.dot(normals[k]).is_negative(); let d=n.dot(normals[k]).is_negative();
if let Some(comp)=&d_comp{ if let &Some(comp)=&d_comp{
// This is testing if d_comp*d < 0 // This is testing if d_comp*d < 0
if comp^d{ if comp^d{
return true; return true;