mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 10:57:49 +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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user