Octree::Locations ItemSpatialTree::evalLocations(const ItemBounds& bounds) const { Locations locations; Coord3f minCoordf, maxCoordf; locations.reserve(bounds.size()); for (auto& bound : bounds) { if (!bound.bound.isNull()) { locations.emplace_back(evalLocation(bound.bound, minCoordf, maxCoordf)); } else { locations.emplace_back(Location()); } } return locations; }