Skip to content

Commit 94bad4c

Browse files
committed
Switch over clash to latest add_element signature
1 parent 3f456c1 commit 94bad4c

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/blenderbim/blenderbim/core/tool.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,17 @@ def set_active_bsdd(cls, name, uri): pass
153153
def should_load_preview_domains(cls): pass
154154

155155

156+
@interface
157+
class Clash:
158+
def export_clash_sets(cls): pass
159+
def get_clash(cls, clash_set, a_global_id, b_global_id): pass
160+
def get_clash_set(cls, name): pass
161+
def get_clash_sets(cls): pass
162+
def import_active_clashes(cls): pass
163+
def load_clash_sets(cls, fn): pass
164+
def look_at(cls, target, location): pass
165+
166+
156167
@interface
157168
class Collector:
158169
def assign(cls, obj): pass

src/blenderbim/blenderbim/tool/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from blenderbim.tool.brick import Brick
2323
from blenderbim.tool.bsdd import Bsdd
2424
from blenderbim.tool.cad import Cad
25+
from blenderbim.tool.clash import Clash
2526
from blenderbim.tool.collector import Collector
2627
from blenderbim.tool.context import Context
2728
from blenderbim.tool.debug import Debug

src/ifcclash/ifcclash/ifcclash.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ def add_collision_objects(self, name, ifc_file, mode=None, selector=None):
135135
self.logger.info(f"Adding objects {name}")
136136
assert iterator.initialize()
137137
while True:
138-
self.tree.add_element(iterator.get_native(), should_triangulate=True)
139-
# self.tree.add_element(iterator.get())
138+
self.tree.add_element(iterator.get())
140139
shape = iterator.get()
141140
if not iterator.next():
142141
break

0 commit comments

Comments
 (0)