deref bool
This commit is contained in:
parent
c2f78eab48
commit
c7575f2e21
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user