Minimum distance between two SuperEllipsoids.

Optimization method to determine the minimum distance (or max overlap) between two SuperEllipsoids?
Updated 22 Jul 2020

View License

What´s the minimum distance between two SuperEllipsoids? What's the maximum overlap between two SuperEllipsoids?
A proximity query contact detection between convex superellipsoids surfaces using its implicit equations.
The contact detection of two superellipsoids is formulated as a convex nonlinear constrained optimization problem that is solved using fmincon function, with an Interior Point method. The objective function to be minimized is the distance between both surfaces. The design constraints are the implicit superquadrics surfaces equations and operations between its normal vectors and the distance itself (several constraint sets can be selected). The contact points or the points that minimize the distance between the surfaces are the design variables.
The visualization of the surfaces, the initial estimate and the optimization solution for the minimum distance is provided.

- Portal, Ricardo. Sousa, Luís. Dias, João. "Contact Detection between Convex Superquadric Surfaces". The Archive of Mechanical Engineering. Versita, Warsaw. LVII(2), pp. 165-186, DOI 10.2478/v10180-010-0009-8. 2010.

- Chakraborty, N., J. Peng, et al. (2008). "Proximity Queries Between Convex Objects: An Interior Point Approach for Implicit Surfaces." IEEE Transactions on Robotics: 211-220.

Cite As

Ricardo Portal (2024). Minimum distance between two SuperEllipsoids. (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Physics in Help Center and MATLAB Answers

Inspired by: Arrow3

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Image and title update

MathWorks update: Added Live Script.