mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 21:38:12 +00:00
Additional validity check with log level debug
This commit is contained in:
@@ -20,6 +20,8 @@
|
|||||||
#include "IfcGeom.h"
|
#include "IfcGeom.h"
|
||||||
#include "IfcGeomShapeType.h"
|
#include "IfcGeomShapeType.h"
|
||||||
|
|
||||||
|
#include <BRepCheck_Analyzer.hxx>
|
||||||
|
|
||||||
#define Kernel MAKE_TYPE_NAME(Kernel)
|
#define Kernel MAKE_TYPE_NAME(Kernel)
|
||||||
|
|
||||||
using namespace IfcUtil;
|
using namespace IfcUtil;
|
||||||
@@ -91,6 +93,11 @@ bool IfcGeom::Kernel::convert_shape(const IfcBaseClass* l, TopoDS_Shape& r) {
|
|||||||
#ifndef NO_CACHE
|
#ifndef NO_CACHE
|
||||||
cache.Shape[id] = r;
|
cache.Shape[id] = r;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (Logger::LOG_DEBUG >= Logger::Verbosity()) {
|
||||||
|
BRepCheck_Analyzer ana(r);
|
||||||
|
Logger::Notice("Valid: " + std::to_string(ana.IsValid()), l);
|
||||||
|
}
|
||||||
} else if (!ignored) {
|
} else if (!ignored) {
|
||||||
const char* const msg = processed
|
const char* const msg = processed
|
||||||
? "Failed to convert:"
|
? "Failed to convert:"
|
||||||
|
|||||||
Reference in New Issue
Block a user