initial commit

This commit is contained in:
Gergő Jedlicska
2023-06-22 12:32:34 +02:00
commit f4fdcb9272
13 changed files with 1757 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
from typing import Iterable
from specklepy.objects import Base
def flatten_base(base: Base) -> Iterable[Base]:
if hasattr(base, "elements"):
for element in base.elements:
yield from flatten_base(element)
yield base