meyerls / pc-skeletor

Skeletonization of 3D Point Clouds
MIT License
151 stars 18 forks source link

I encountered an error while running the SLBC example program #20

Open cyxin-art opened 11 months ago

cyxin-art commented 11 months ago

Traceback (most recent call last): File "C:\Users\caoyouxiang\Desktop\learning\findpoint\11111.py", line 37, in lbc = SLBC(point_cloud=pcd, File "E:\anaconda\envs\myenv\lib\site-packages\pc_skeletor\laplacian.py", line 444, in init self.trunk = self.trunk.voxel_down_sample(down_sample) AttributeError: 'SLBC' object has no attribute 'trunk'

meyerls commented 11 months ago

Hm, the trunk and branch pcd should be init in LaplacianBasedContractionBase.

Did you run the example_tree.py file? Could you please check what type pcd_trunk is (it should be of type open3d point cloud)?