This commit is contained in:
Andrej730
2025-05-22 11:42:56 +05:00
parent 441e2ddbd6
commit 88befea174
5 changed files with 29 additions and 17 deletions
@@ -28,7 +28,7 @@ from ..entity_instance import entity_instance
from . import has_occ
from typing import TypeVar, Union, Optional, Generator, Any, Literal, overload, TYPE_CHECKING, Iterable, cast
from typing import TypeVar, Union, Optional, Generator, Any, Literal, overload, TYPE_CHECKING, Iterable, cast, TypedDict
if TYPE_CHECKING:
from OCC.Core import TopoDS
@@ -409,13 +409,13 @@ class tree(ifcopenshell_wrapper.tree):
set_b: Iterable[entity_instance],
tolerance: float = 0.002,
check_all: bool = True,
):
) -> tuple[ifcopenshell_wrapper.clash, ...]:
args = [self, [e.wrapped_data for e in set_a], [e.wrapped_data for e in set_b], tolerance, check_all]
return ifcopenshell_wrapper.tree.clash_intersection_many(*args)
def clash_collision_many(
self, set_a: Iterable[entity_instance], set_b: Iterable[entity_instance], allow_touching=False
):
) -> tuple[ifcopenshell_wrapper.clash, ...]:
args = [self, [e.wrapped_data for e in set_a], [e.wrapped_data for e in set_b], allow_touching]
return ifcopenshell_wrapper.tree.clash_collision_many(*args)
@@ -425,7 +425,7 @@ class tree(ifcopenshell_wrapper.tree):
set_b: Iterable[entity_instance],
clearance: float = 0.05,
check_all: bool = False,
):
) -> tuple[ifcopenshell_wrapper.clash, ...]:
args = [self, [e.wrapped_data for e in set_a], [e.wrapped_data for e in set_b], clearance, check_all]
return ifcopenshell_wrapper.tree.clash_clearance_many(*args)