IfcBlender: provide a temporary workaround for interfacing from a UCS2 Blender Python

A real solution could be to compile IfcGeom into a dynamic library and compile multiple versions of _IfcImport.so for different configurations which are selected based on sys.maxunicode
Another alternative would be not to rely on strings when exchanging textual data but vectors of int that contain the string character codes
This commit is contained in:
Thomas Krijnen
2011-12-04 13:33:16 +00:00
parent 950dd93c4f
commit cab44ce754
4 changed files with 20 additions and 1 deletions
+3
View File
@@ -435,6 +435,9 @@ const IfcGeomObjects::IfcGeomObject* IfcGeomObjects::Get() {
bool IfcGeomObjects::Init(const std::string fn) {
return IfcGeomObjects::Init(fn, 0, 0);
}
bool IfcGeomObjects::InitUCS2(char* fn) {
return IfcGeomObjects::Init(fn+1, 0, 0);
}
bool _Init() {
shapereps = Ifc::EntitiesByType<Ifc2x3::IfcShapeRepresentation>();
if ( ! shapereps ) return false;