mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 06:00:51 +00:00
14 lines
398 B
C++
14 lines
398 B
C++
|
|
#include "IfcRegisterUndef.h"
|
||
|
|
#define SHAPE(T) \
|
||
|
|
if ( l->is(T::Class()) ) { \
|
||
|
|
try { \
|
||
|
|
bool b = convert(reinterpret_pointer_cast<IfcBaseClass,T>(l),r); \
|
||
|
|
if ( b ) { \
|
||
|
|
Cache::Shape[l->entity->id()] = r; \
|
||
|
|
return true; \
|
||
|
|
} else { return false; }\
|
||
|
|
} catch(...) { Ifc::LogMessage("Error","Failed to convert:",l->entity); } \
|
||
|
|
}
|
||
|
|
#include "IfcRegisterDef.h"
|
||
|
|
|
||
|
|
#include "IfcRegister.h"
|