More work

This commit is contained in:
Thomas Krijnen
2019-08-16 17:40:13 +02:00
parent dae35f59ce
commit ddeaf5a375
52 changed files with 4083 additions and 4184 deletions
+13 -1
View File
@@ -5,7 +5,19 @@
#define BIND(T) \
if (l->declaration().is(IfcSchema::T::Class())) { \
try { \
return map((IfcSchema::T*)l); \
taxonomy::item* item = map((IfcSchema::T*)l); \
item->instance = l; \
try { \
if (l->as<IfcSchema::IfcRepresentationItem>()) { \
auto style = find_style(l->as<IfcSchema::IfcRepresentationItem>()); \
if (style) { \
((taxonomy::geom_item*)item)->surface_style = as<taxonomy::style>(map(style)); \
} \
} \
} catch (const std::exception& e) { \
Logger::Message(Logger::LOG_ERROR, std::string(e.what()) + "\nFailed to convert:", l); \
} \
return item; \
} catch (const std::exception& e) { \
Logger::Message(Logger::LOG_ERROR, std::string(e.what()) + "\nFailed to convert:", l); \
} \