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
PointCloud.points has no elements and read only #6755
Comments
@szppaks - Use
See https://www.open3d.org/docs/release/tutorial/geometry/working_with_numpy.html |
import open3d as o3d pcd = o3d.geometry.PointCloud() File "C:\Users\b0898\AppData\Local\Temp\ipykernel_9748\1296022844.py", line 4, in <cell line: 4> AttributeError: 'open3d.cpu.pybind.geometry.PointCloud' object attribute 'points' is read-only (I have tried Vector3dVector first, and then simple numpy array, but it does not work - nor set the points neither get the points.) |
@szppaks Just read again through your original message. This issue is definitely peculiar. Looks like some issue in python bindings not properly mapping points data from C++ to numpy array. |
Checklist
main
branch).Describe the issue
The points property is readonly, so I have created the point cloud passing a Vector3dVector(nparray) in the constructor. A point cloud has_points() gives True, te get_minimal_oriented_bounding_box() works well, but the points property stores an empty numpy array.
Steps to reproduce the bug
Error message
No response
Expected behavior
No response
Open3D, Python and System information
Additional information
No response
The text was updated successfully, but these errors were encountered: