item_id()

This commit is contained in:
Thomas Krijnen
2024-02-18 12:02:18 +01:00
parent 0d9a40f88c
commit b76dad682a
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -423,3 +423,11 @@ const IfcGeom::ConversionResultShape* IfcGeom::Representation::BRep::item(int i)
return nullptr;
}
}
int IfcGeom::Representation::BRep::item_id(int i) const {
if (i >= 0 && i < shapes_.size()) {
return shapes_[i].ItemId();
} else {
return 0;
}
}
+1
View File
@@ -72,6 +72,7 @@ namespace IfcGeom {
int size() const { return shapes_.size(); }
const IfcGeom::ConversionResultShape* item(int i) const;
int item_id(int i) const;
};
class IFC_GEOM_API Serialization : public Representation {