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
@@ -91,7 +91,12 @@ class iterator(_iterator):
if has_occ:
def get(self):
return wrap_shape_creation(self.settings, _iterator.get(self))
def __iter__(self):
if self.initialize():
while True:
yield self.get()
if not self.next(): break
class tree(ifcopenshell_wrapper.tree):