From 87f39b3826faa29ac86599785016136be66099e9 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 21 Nov 2023 14:42:59 +0100 Subject: [PATCH] Temporarily log evaluated points --- src/ifcgeom/taxonomy.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ifcgeom/taxonomy.cpp b/src/ifcgeom/taxonomy.cpp index 45b0b1ad9d..432d2d2c7c 100644 --- a/src/ifcgeom/taxonomy.cpp +++ b/src/ifcgeom/taxonomy.cpp @@ -1,3 +1,4 @@ +#include "../ifcparse/IfcLogger.h" #include "taxonomy.h" #include "profile_helper.h" @@ -469,6 +470,13 @@ ifcopenshell::geometry::taxonomy::item::ptr ifcopenshell::geometry::taxonomy::pi polygon.push_back(taxonomy::make(m.col(3)(0), m.col(3)(1), m.col(3)(2))); } + // @nb temporary debugging - can be removed later. + std::ostringstream oss; + for (auto it = polygon.begin(); it != polygon.end() && std::distance(polygon.begin(), it) < 5; ++it) { + (**it).print(oss); + } + Logger::Notice("Evaluated points: " + oss.str(), instance); + return polygon_from_points(polygon); }