mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 06:18:09 +00:00
item_id()
This commit is contained in:
@@ -423,3 +423,11 @@ const IfcGeom::ConversionResultShape* IfcGeom::Representation::BRep::item(int i)
|
|||||||
return nullptr;
|
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(); }
|
int size() const { return shapes_.size(); }
|
||||||
const IfcGeom::ConversionResultShape* item(int i) const;
|
const IfcGeom::ConversionResultShape* item(int i) const;
|
||||||
|
int item_id(int i) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
class IFC_GEOM_API Serialization : public Representation {
|
class IFC_GEOM_API Serialization : public Representation {
|
||||||
|
|||||||
Reference in New Issue
Block a user