Inline redundant variable

This commit is contained in:
Hanno Braun 2024-10-11 19:29:22 +02:00
parent a725998f31
commit a0a470009b

View File

@ -40,8 +40,7 @@ impl super::BoundingVolume<3> for &Face {
// Let's just choose a reasonable tolerance value here,
// then make sure we enlarge the AABB accordingly, to
// make sure it fits.
let tolerance_f64 = 0.001;
let tolerance = Tolerance::from_scalar(tolerance_f64)
let tolerance = Tolerance::from_scalar(0.001)
.expect("Tolerance provided is larger than zero");
let offset = Vector::from([tolerance.inner(); 3]);