diff --git a/src/BVH/BVH_Box.lxx b/src/BVH/BVH_Box.lxx index 7affa94eac..80098819e6 100644 --- a/src/BVH/BVH_Box.lxx +++ b/src/BVH/BVH_Box.lxx @@ -199,7 +199,8 @@ namespace BVHTools template T BVH_Box::Area() const { - return BVHTools::SurfaceCalculator::Area (myMaxPoint - myMinPoint); + return !myInitialized ? static_cast (0.0) : + BVHTools::SurfaceCalculator::Area (myMaxPoint - myMinPoint); } // =======================================================================