Skip to content

Commit

Permalink
Merge pull request #28 from JoannaS11/main
Browse files Browse the repository at this point in the history
solved two compiler issues in debug=True mode
  • Loading branch information
meyerls authored May 14, 2024
2 parents 665dcac + b1886a7 commit 5ecc210
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 = L @ pcd_points
# Scale normals for visualization
pcd.normals = o3d.utility.Vector3dVector(mean_curvature_flow / 5)

Expand Down

0 comments on commit 5ecc210

Please sign in to comment.