Loading [MathJax]/extensions/TeX/AMSsymbols.js
Open3D (C++ API)  0.19.0
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions
open3d::t::geometry::kernel::minimum_obb Namespace Reference

Functions

OrientedBoundingBox ComputeMinimumOBBJylanki (const core::Tensor &points_, bool robust)
 
OrientedBoundingBox ComputeMinimumOBBApprox (const core::Tensor &points, bool robust)
 

Function Documentation

◆ ComputeMinimumOBBApprox()

OrientedBoundingBox open3d::t::geometry::kernel::minimum_obb::ComputeMinimumOBBApprox ( const core::Tensor points,
bool  robust 
)

Fast approximation of the oriented bounding box with the smallest volume. The algorithm makes use of the fact that at least one edge of the convex hull must be collinear with an edge of the minimum bounding box: for each triangle in the convex hull, calculate the minimal axis aligned box in the frame of that triangle. at the end, return the box with the smallest volume found.

Parameters
pointsA list of points with data type of float32 or float64 (N x 3 tensor, where N must be larger than 3).
robustIf set to true uses a more robust method which works in degenerate cases but introduces noise to the points coordinates.

◆ ComputeMinimumOBBJylanki()

OrientedBoundingBox open3d::t::geometry::kernel::minimum_obb::ComputeMinimumOBBJylanki ( const core::Tensor points,
bool  robust 
)

Creates the oriented bounding box with the smallest volume. This algorithm is inspired by the article "An Exact Algorithm for Finding Minimum Oriented Bounding Boxes" written by Jukka Jylänki. The original implementation can be found at the following address: https://github.com/juj/MathGeoLib/blob/55053da5e3e55a83043af7324944407b174c3724/src/Geometry/OBB.cpp#L987

Parameters
pointsA list of points with data type of float32 or float64 (N x 3 tensor, where N must be larger than 3).
robustIf set to true uses a more robust method which works in degenerate cases but introduces noise to the points coordinates.