mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
ifcclash: fix use of undefined clash["position"]
It's an artifact from the old hppfcl clasher dropped in 18c38b312
This commit is contained in:
@@ -286,7 +286,8 @@ class Clasher:
|
|||||||
|
|
||||||
positions = []
|
positions = []
|
||||||
for clash in clashes.values():
|
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)
|
data = np.array(positions)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user