mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
Simple implementation of clearance clash.
This commit is contained in:
@@ -197,8 +197,16 @@ class tree(ifcopenshell_wrapper.tree):
|
||||
return value
|
||||
|
||||
args = [self, unwrap(value), allow_touching]
|
||||
return [entity_instance(e) for e in ifcopenshell_wrapper.tree.clash_collision(*args)]
|
||||
return [entity_instance(e) for e in ifcopenshell_wrapper.tree.clash_intersection(*args)]
|
||||
|
||||
def clash_clearance(self, value, clearance=0.05):
|
||||
def unwrap(value):
|
||||
if isinstance(value, entity_instance):
|
||||
return value.wrapped_data
|
||||
return value
|
||||
|
||||
args = [self, unwrap(value), clearance]
|
||||
return [entity_instance(e) for e in ifcopenshell_wrapper.tree.clash_clearance(*args)]
|
||||
|
||||
|
||||
def create_shape(settings, inst, repr=None):
|
||||
|
||||
Reference in New Issue
Block a user