Open3D
Open3D copied to clipboard
obb error???
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
master
branch).
My Question
1.zip This is my data
This is my solution
def inverse_matrix(m): m_np = np.array(m) m_np_inv = np.linalg.inv(m_np) return m_np_inv
import trimesh mat, whd = trimesh.bounds.oriented_bounds(np.array(inlier_cloud.points)) mat_inv = inverse_matrix(mat) bbox = trimesh.creation.box(whd, mat_inv) new_obb = o3d.utility.Vector3dVector(np.array(bbox.vertices)) new_obb = o3d.geometry.OrientedBoundingBox.create_from_points(new_obb) new_obb.color = (0, 1, 1)