Files
IfcOpenShell/src/ifcgeom/IfcRegisterConvertShape.h
T

14 lines
398 B
C++
Raw Normal View History

#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"