isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.33k stars 2.29k forks source link

VoxelGrid rotate() function #6333

Open Carter-S opened 1 year ago

Carter-S commented 1 year ago

Checklist

Describe the issue

I am trying to simply rotate a voxel grid. When I try to use the rotate() function i get the following error: voxels[0].rotate(R) RuntimeError: [Open3D Error] (virtual open3d::geometry::VoxelGrid& open3d::geometry::VoxelGrid::Rotate(const Matrix3d&, const Vector3d&)) /root/Open3D/cpp/open3d/geometry/VoxelGrid.cpp:116: Not implemented

Steps to reproduce the bug

# Compute the 3x3 rotation matrix for a 180-degree rotation about the Y-axis
rotation_vector = np.array([0, np.pi, 0])  # Y-axis rotation

R = o3d.geometry.get_rotation_matrix_from_axis_angle(rotation_vector)

voxels[0].rotate(R)

replace voxels[0] with a voxel grid

Error message

voxels[0].rotate(R) RuntimeError: [Open3D Error] (virtual open3d::geometry::VoxelGrid& open3d::geometry::VoxelGrid::Rotate(const Matrix3d&, const Vector3d&)) /root/Open3D/cpp/open3d/geometry/VoxelGrid.cpp:116: Not implemented

Expected behavior

Rotates the voxel gird

Open3D, Python and System information

- Operating system: Fedora Linux 38
- Python version: Python 3.10.0
- Open3D version: 0.17.0
- Is this a remote workstation?: no
- How did you install Open3D?: pip

Additional information

No response

CruxDevStuff commented 5 months ago

hi, did you manage to solve this issue ?