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;
}
}