mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
item_id()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user