mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
Catch errors in the processing of lists of shapes
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
#include "IfcRegisterUndef.h"
|
#include "IfcRegisterUndef.h"
|
||||||
#define SHAPES(T) \
|
#define SHAPES(T) \
|
||||||
if ( l->is(T::Class()) ) { \
|
if ( l->is(T::Class()) ) { \
|
||||||
return IfcGeom::convert((T*)l,r); \
|
try { \
|
||||||
|
return IfcGeom::convert((T*)l,r); \
|
||||||
|
} catch (...) { } \
|
||||||
|
Ifc::LogMessage("Error","Failed to convert:",l->entity); \
|
||||||
|
return false; \
|
||||||
}
|
}
|
||||||
#include "IfcRegisterDef.h"
|
#include "IfcRegisterDef.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user