Skip to content

Commit

Permalink
solved two compiler issues in debug=True mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JoannaS11 committed May 13, 2024
1 parent 665dcac commit f88cf7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pc_skeletor/laplacian.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit f88cf7a

Please sign in to comment.