Skip to content

Commit 2864e54

Browse files
committed
WIP-FIX cloud2cloud
1 parent b61aa5f commit 2864e54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gh/diffCheck/diffCheck/df_error_estimation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def cloud_2_cloud_distance(source, target, signed=False):
1717
if signed:
1818

1919
# Build a KD-tree for the target points
20-
kdtree = o3d.geometry.KDTreeFlann(np.asarray(target.points))
20+
pcd = o3d.geometry.PointCloud()
21+
pcd.points = o3d.utility.Vector3dVector(target.points)
22+
kdtree = o3d.geometry.KDTreeFlann(pcd)
2123
print("KD-tree built successfully.")
2224

2325
for i in range(len(source.points)):

0 commit comments

Comments
 (0)