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)