From f88cf7af90c807af7d67894bc14bbe24b2ee2449 Mon Sep 17 00:00:00 2001 From: JoannaS11 Date: Mon, 13 May 2024 13:19:16 +0200 Subject: [PATCH 1/2] solved two compiler issues in debug=True mode --- pc_skeletor/laplacian.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pc_skeletor/laplacian.py b/pc_skeletor/laplacian.py index 9e08de0..2f06640 100644 --- a/pc_skeletor/laplacian.py +++ b/pc_skeletor/laplacian.py @@ -361,7 +361,7 @@ def __init__(self, std_ratio=filter_std_ratio) if self.debug: - o3d.visualization.draw_geometries([pcd], window_name="Default Point Cloud") + o3d.visualization.draw_geometries([self.pcd], window_name="Default Point Cloud") def __least_squares_sparse(self, pcd_points, L, laplacian_weighting, positional_weighting): """ @@ -410,7 +410,7 @@ def __least_squares_sparse(self, pcd_points, L, laplacian_weighting, positional_ if self.debug: pcd = o3d.geometry.PointCloud() pcd.points = o3d.utility.Vector3dVector(pcd_points) - mean_curvature_flow = WL_L @ pcd_points + mean_curvature_flow = WL @ pcd_points # Scale normals for visualization pcd.normals = o3d.utility.Vector3dVector(mean_curvature_flow / 5) From b1886a744fa0c0ecf64ed5d661d5d6e7b121e9c3 Mon Sep 17 00:00:00 2001 From: 01JoannaS Date: Tue, 14 May 2024 09:58:07 +0200 Subject: [PATCH 2/2] laplacian.py line 413: WL corrected to L --- pc_skeletor/laplacian.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pc_skeletor/laplacian.py b/pc_skeletor/laplacian.py index 2f06640..2d3154d 100644 --- a/pc_skeletor/laplacian.py +++ b/pc_skeletor/laplacian.py @@ -410,7 +410,7 @@ def __least_squares_sparse(self, pcd_points, L, laplacian_weighting, positional_ if self.debug: pcd = o3d.geometry.PointCloud() pcd.points = o3d.utility.Vector3dVector(pcd_points) - mean_curvature_flow = WL @ pcd_points + mean_curvature_flow = L @ pcd_points # Scale normals for visualization pcd.normals = o3d.utility.Vector3dVector(mean_curvature_flow / 5)