Repository navigation
Adding minimum volume oriented bounding ellipsoid matching functionality - #7377
Conversation
β¦t/OrientedBoundingEllipsoid
β¦t/OrientedBoundingEllipsoid
|
Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes. |
There was a problem hiding this comment.
Pull request overview
This PR adds Oriented Bounding Ellipsoid (OBE) support to Open3D, implementing minimum volume enclosing ellipsoids using Khachiyan's algorithm. The feature provides a tighter geometric approximation than axis-aligned or oriented bounding boxes for certain shapes.
Key changes:
- Implements Khachiyan's algorithm for computing minimum volume enclosing ellipsoids
- Adds OrientedBoundingEllipsoid class to both legacy and tensor-based APIs
- Integrates ellipsoid support across all 3D geometry types with visualization capabilities
Reviewed changes
Copilot reviewed 46 out of 46 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| cpp/open3d/t/geometry/kernel/MinimumOBE.cpp | Core Khachiyan algorithm implementation for computing minimum volume ellipsoids |
| cpp/open3d/geometry/BoundingVolume.h/cpp | Legacy API OrientedBoundingEllipsoid class with transformation operations |
| cpp/open3d/t/geometry/BoundingVolume.h/cpp | Tensor-based OrientedBoundingEllipsoid implementation |
| cpp/open3d/geometry/TriangleMeshFactory.cpp | CreateEllipsoid factory method for generating ellipsoid meshes |
| cpp/open3d/geometry/LineSetFactory.cpp | Factory method for creating wireframe representation of ellipsoids |
| cpp/pybind/geometry/boundingvolume.cpp | Python bindings for OrientedBoundingEllipsoid |
| cpp/open3d/visualization/* | Visualization support for rendering ellipsoids |
| cpp/tests/t/geometry/TriangleMesh.cpp | Unit test for CreateEllipsoid functionality |
π‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
ssheorey
left a comment
There was a problem hiding this comment.
Thanks @quentin-leboutet for this cool new feature!
I'll simplify the PR a bit before merging, to keep Open3D complexity under control. Main changes:
- Only have the create OBE APIs for point cloud and mesh - the two most often used classes. Users can create OBEs for other classes by going through point cloud.
- Remove explicit rendering support (filament / legacy OpenGL shaders)- the user can explicitly create an ellipsoid mesh for rendering. LineSet for wireframe mode is automatically created from a mesh.
- Only have the create OBE APIs for point cloud and mesh - the two most often used classes. Users can create OBEs for other classes by going through point cloud.. Remove from all other legacy geometry types. - t::OBB does not derive from DrawableGeometry. Remove shaders / rendering support.. GetOBE support for t::mesh, t::pcd. - Remove explicit rendering support (filament / legacy OpenGL shaders)- the user can explicitly create an ellipsoid mesh or LineSet for rendering. - Add examples in pybind docs, doxygen docs, python tests, C++ tests. - Revert pybind export map change for CUDA count devices function. - MIsc. cleanup Co-authored-by: Copilot <copilot@github.com>
Preserve device and dtype for input and output. Co-authored-by: Copilot <copilot@github.com>
Add Oriented Bounding Ellipsoid (OBE) support to Open3D
Type
Motivation and Context
This PR adds support for Oriented Bounding Ellipsoids (OBE) to Open3D, complementing the existing bounding volume primitives (AABB and OBB). Oriented bounding ellipsoids provide a tighter fit for certain geometries compared to boxes, which can be beneficial for:
The implementation uses Khachiyan's algorithm to compute the minimum volume enclosing ellipsoid, providing an efficient approximation of the optimal bounding ellipsoid.
Checklist:
python util/check_style.py --applyto apply Open3D code styleto my code.
updated accordingly.
results (e.g. screenshots or numbers) here.
Description
Core Implementation
New Classes:
Key Features:
GetOrientedBoundingEllipsoid()method to all 3D geometry base classes (Geometry3D.h:74-75)create_from_points()static method with robust optioncenter,R(rotation),radii,colorTry it: