From 4f429f60f9d1e77768b72292f20bfd0d9f4dbb8e Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 15 Jul 2026 13:45:57 +0500 Subject: [PATCH] ifcclash: fix use of undefined `clash["position"]` It's an artifact from the old hppfcl clasher dropped in 18c38b312 (cherry picked from commit 71c6950a596c7947c74bddac58d109abb44d8853) --- src/ifcclash/ifcclash/ifcclash.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifcclash/ifcclash/ifcclash.py b/src/ifcclash/ifcclash/ifcclash.py index 6e8f05b3a8..34245dc764 100644 --- a/src/ifcclash/ifcclash/ifcclash.py +++ b/src/ifcclash/ifcclash/ifcclash.py @@ -286,7 +286,8 @@ class Clasher: positions = [] for clash in clashes.values(): - positions.append(clash["position"]) + # Midpoint of p1/p2 as an approximation of the clash location for clustering purposes. + positions.append([(a + b) / 2 for a, b in zip(clash["p1"], clash["p2"])]) data = np.array(positions)