From fd9f209a19ce2fa1cca5faa031b615ba85495bd2 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 23 May 2021 09:36:31 +0200 Subject: [PATCH] Additional validity check with log level debug --- src/ifcgeom/IfcRegister.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ifcgeom/IfcRegister.cpp b/src/ifcgeom/IfcRegister.cpp index 08773b09e6..658fa05192 100644 --- a/src/ifcgeom/IfcRegister.cpp +++ b/src/ifcgeom/IfcRegister.cpp @@ -20,6 +20,8 @@ #include "IfcGeom.h" #include "IfcGeomShapeType.h" +#include + #define Kernel MAKE_TYPE_NAME(Kernel) using namespace IfcUtil; @@ -91,6 +93,11 @@ bool IfcGeom::Kernel::convert_shape(const IfcBaseClass* l, TopoDS_Shape& r) { #ifndef NO_CACHE cache.Shape[id] = r; #endif + + if (Logger::LOG_DEBUG >= Logger::Verbosity()) { + BRepCheck_Analyzer ana(r); + Logger::Notice("Valid: " + std::to_string(ana.IsValid()), l); + } } else if (!ignored) { const char* const msg = processed ? "Failed to convert:"