daavoo / pyntcloud

pyntcloud is a Python library for working with 3D point clouds.
http://pyntcloud.readthedocs.io
MIT License
1.39k stars 221 forks source link

KeyError: 'curvature(K(16))' #306

Closed kidpaul94 closed 3 years ago

kidpaul94 commented 3 years ago

Describe the bug I was trying to exactly replicate the code here on stackoverflow: https://stackoverflow.com/questions/42476839/is-gaussian-mean-curvatures-applicable-for-rough-surfaces/42489903?noredirect=1#comment72136158_42489903

And the following command gives an error: curvature = cloud.points["curvature(K(16))"] raise KeyError(key) from err KeyError: 'curvature(K(16))'

Expected behavior I was trying to get edges from the original pointclouds as shown in the stackoverflow post.

Desktop (please complete the following information):

Additional context I couldn't find any documentation regarding this "curvature(K(16))" in cloud.points and do the task I want to do. I wonder whether this is under modification since the comment on stackoverflow was posted in 2017.

kidpaul94 commented 3 years ago

Never mind, I figured out.

daavoo commented 3 years ago

Hola @kidpaul94 , what was the fix?? Using "curvature(K(10))"¿

kidpaul94 commented 3 years ago

cloud.add_scalar_field("curvature", ev=ev) gave me curvature(11), so I used that.