Process IfcRelAggregates and IfcRelContainedInSpatialStructure to enable IfcBlender to build a parenting graph

This commit is contained in:
Thomas Krijnen
2011-10-08 13:06:57 +00:00
parent 69ad96df25
commit 87b668959b
5 changed files with 223 additions and 49 deletions
+13 -5
View File
@@ -26,17 +26,25 @@ namespace IfcGeomObjects {
std::vector<int> edges;
};
class IfcGeomObject {
class IfcObject {
public:
int id;
int parent_id;
std::string name;
std::string type;
std::string guid;
std::vector<float> matrix;
};
class IfcGeomObject : public IfcObject {
public:
IfcMesh* mesh;
};
extern bool Next();
extern const IfcGeomObject* Get();
extern bool Init(const char* fn, bool world_coords = false);
extern int Progress();
bool Next();
const IfcGeomObject* Get();
bool Init(const char* fn, bool world_coords = false);
int Progress();
const IfcObject* GetObject(int id);
bool CleanUp();
};