Rudimentary handling of purging voids and fills

This commit is contained in:
Dion Moult
2021-08-22 22:02:22 +10:00
parent 0d2d5ff16b
commit afb3d998c8
@@ -34,4 +34,9 @@ class Usecase:
ifcopenshell.api.run("grid.remove_grid_axis", self.file, axis=axis)
# TODO: remove object placement and other relationships
for inverse in self.file.get_inverse(self.settings["product"]):
if inverse.is_a("IfcRelFillsElement"):
self.file.remove(inverse)
elif inverse.is_a("IfcRelVoidsElement"):
self.file.remove(inverse)
self.file.remove(self.settings["product"])