isl-org / isl-org/Open3D

Is the box.GetOrientedBoundingBoxLines() deleted in recent version?

Open
#6,766 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](https://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](https://www.open3d.org/docs/release/) and the [latest documentation](https://www.open3d.org/docs/latest/) (for `main` branch).

### My Question

I consult the chatGPT, it gives code as below

```
Eigen::Vector4d extrinsics(0.0, 0.0, 0.0, 1.0); // Replace with actual extrinsics

// Create visualization window and visualize point cloud
open3d::visualization::Visualizer visualizer;
visualizer.CreateVisualizerWindow("Open3D - KITTI LiDAR Viewer", 1600, 900);
visualizer.AddGeometry(cloud);

// Draw a 3D box on the point cloud
open3d::geometry::AxisAlignedBoundingBox box(Eigen::Vector3d(1, 1, 1), Eigen::Vector3d(2, 2, 2)); // Example box
auto lines = box.GetOrientedBoundingBoxLines();
for (auto& line : lines) {
line.Transform(extrinsics);
visualizer.AddGeometry(line);
}
```

but in my code, box.GetOrientedBoundingBoxLines() is not found, if this function was deleted in the new version, how to get lines from a box quickly?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.