Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'open3d.cpu.pybind.geometry.PointCloud' object has no attribute 'compute_boundary_points' #6793

Closed
3 tasks done
piw-bot opened this issue May 15, 2024 · 2 comments
Labels
bug Not a build issue, this is likely a bug.

Comments

@piw-bot
Copy link

piw-bot commented May 15, 2024

Checklist

Describe the issue

I'm trying to use "compute_boundary_points()" on a point cloud but it results in an AttributeError. How is that possible?

I used the tutorial on https://www.open3d.org/docs/latest/tutorial/t_geometry/pointcloud.html for Boundary detection

Steps to reproduce the bug

pcd = o3d.io.read_point_cloud("MY_POINT_CLOUD")
boundarys, mask = pcd.compute_boundary_points(0.02, 30)

Error message

Traceback (most recent call last):
File "C:\Users\PycharmProjects\stl_try_out\main.py", line 170, in
open3d_boundary_detection()
File "C:\Users\PycharmProjects\stl_try_out\main.py", line 154, in open3d_boundary_detection
boundarys, mask = pcd.compute_boundary_points(0.02, 30)
AttributeError: 'open3d.cpu.pybind.geometry.PointCloud' object has no attribute 'compute_boundary_points'

Expected behavior

No response

Open3D, Python and System information

- Operating system: Windows 10 64-bit
- Python version: Python 3.10
- Open3D version: 0.18.0
- System architecture: x86 
- Is this a remote workstation?:no
- How did you install Open3D?: pip

Additional information

No response

@piw-bot piw-bot added the bug Not a build issue, this is likely a bug. label May 15, 2024
@sitic
Copy link
Contributor

sitic commented May 23, 2024

You need to use o3d.t.io.read_point_cloud(). Note the extra .t., compute_boundary_points() is implemented for the tensor-based o3d.t.geometry.PointCloud but not for o3d.geometry.PointCloud.

@piw-bot piw-bot closed this as completed May 27, 2024
@piw-bot
Copy link
Author

piw-bot commented May 27, 2024

this works, thanks a lot!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not a build issue, this is likely a bug.
Projects
None yet
Development

No branches or pull requests

2 participants