Report tasks on actual mapped products

This commit is contained in:
Thomas Krijnen
2023-12-05 21:12:09 +01:00
parent 4cd327f711
commit 0b4718b3b5
+4 -4
View File
@@ -185,9 +185,9 @@ namespace IfcGeom {
tasks_.push_back(res); tasks_.push_back(res);
} }
std::vector<IfcUtil::IfcBaseClass*> products; size_t num_products = 0;
for (auto& r : reps) { for (auto& r : tasks_) {
std::copy(r.products->begin(), r.products->end(), std::back_inserter(products)); num_products += r.products.size();
} }
/* /*
@@ -220,7 +220,7 @@ namespace IfcGeom {
} }
*/ */
Logger::Notice("Created " + boost::lexical_cast<std::string>(tasks_.size()) + " tasks for " + boost::lexical_cast<std::string>(products.size()) + " products"); Logger::Notice("Created " + boost::lexical_cast<std::string>(tasks_.size()) + " tasks for " + boost::lexical_cast<std::string>(num_products) + " products");
if (tasks_.size() == 0) { if (tasks_.size() == 0) {
Logger::Warning("No representations encountered, aborting"); Logger::Warning("No representations encountered, aborting");