Python wrapper geometry handling

This commit is contained in:
Thomas Krijnen
2018-01-01 11:22:12 +01:00
parent 5739fa7239
commit 4bed639d9c
7 changed files with 33 additions and 17 deletions
+10
View File
@@ -129,6 +129,16 @@ public:
}
}
template <class T>
typename T::list::ptr instances_by_type_excl_subtypes() {
IfcEntityList::ptr untyped_list = instances_by_type_excl_subtypes(&T::Class());
if (untyped_list) {
return untyped_list->as<T>();
} else {
return typename T::list::ptr(new typename T::list);
}
}
/// Returns all entities in the file that match the positional argument.
/// NOTE: This also returns subtypes of the requested type, for example:
/// IfcWall will also return IfcWallStandardCase entities