Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

VoxelGrid rotate() function

Open Carter-S opened this issue 2 years ago • 1 comments

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

Carter-S avatar Aug 26 '23 11:08 Carter-S

hi, did you manage to solve this issue ?

CruxDevStuff avatar Apr 23 '24 13:04 CruxDevStuff