
In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, a superellipsoid (or super-ellipsoid) is a
solid
Solid is a state of matter where molecules are closely packed and can not slide past each other. Solids resist compression, expansion, or external forces that would alter its shape, with the degree to which they are resisted dependent upon the ...
whose horizontal sections are
superellipse
A superellipse, also known as a Lamé curve after Gabriel Lamé, is a closed curve resembling the ellipse, retaining the geometric features of semi-major axis and semi-minor axis, and symmetry about them, but defined by an equation that allows ...
s (Lamé curves) with the same squareness parameter
, and whose vertical sections through the center are superellipses with the squareness parameter
. It is a generalization of an ellipsoid, which is a special case when
.
Superellipsoids as
computer graphics
Computer graphics deals with generating images and art with the aid of computers. Computer graphics is a core technology in digital photography, film, video games, digital art, cell phone and computer displays, and many specialized applications. ...
primitives were popularized by
Alan H. Barr (who used the name "
superquadrics
In mathematics, the superquadrics or super-quadrics (also superquadratics) are a family of geometric shapes defined by formulas that resemble those of ellipsoids and other quadrics, except that the squaring operations are replaced by arbitrary po ...
" to refer to both superellipsoids and
supertoroid
In geometry and computer graphics, a supertoroid or supertorus is usually understood to be a family of doughnut-like surfaces (technically, a topological torus) whose shape is defined by mathematical formulas similar to those that define the sup ...
s).
[Barr, A.H. (1992), ''Rigid Physically Based Superquadrics''. Chapter III.8 of ''Graphics Gems III'', edited by D. Kirk, pp. 137–159] In modern
computer vision
Computer vision tasks include methods for image sensor, acquiring, Image processing, processing, Image analysis, analyzing, and understanding digital images, and extraction of high-dimensional data from the real world in order to produce numerical ...
and
robotics
Robotics is the interdisciplinary study and practice of the design, construction, operation, and use of robots.
Within mechanical engineering, robotics is the design and construction of the physical structures of robots, while in computer s ...
literatures,
superquadrics
In mathematics, the superquadrics or super-quadrics (also superquadratics) are a family of geometric shapes defined by formulas that resemble those of ellipsoids and other quadrics, except that the squaring operations are replaced by arbitrary po ...
and superellipsoids are used interchangeably, since superellipsoids are the most representative and widely utilized shape among all the superquadrics.
Superellipsoids have a rich shape vocabulary, including cuboids, cylinders, ellipsoids, octahedra and their intermediates.
It becomes an important geometric primitive widely used in computer vision,
robotics,
and physical simulation.
The main advantage of describing objects and envirionment with superellipsoids is its conciseness and expressiveness in shape.
Furthermore, a closed-form expression of the Minkowski sum between two superellipsoids is available. This makes it a desirable geometric primitive for robot grasping, collision detection, and motion planning.
Special cases
A handful of notable mathematical figures can arise as special cases of superellipsoids given the correct set of values, which are depicted in the above graphic:
*
Cylinder
A cylinder () has traditionally been a three-dimensional solid, one of the most basic of curvilinear geometric shapes. In elementary geometry, it is considered a prism with a circle as its base.
A cylinder may also be defined as an infinite ...
*
Sphere
A sphere (from Ancient Greek, Greek , ) is a surface (mathematics), surface analogous to the circle, a curve. In solid geometry, a sphere is the Locus (mathematics), set of points that are all at the same distance from a given point in three ...
*
Steinmetz solid
*
Bicone
In geometry, a bicone or dicone (from , and Greek: ''di-'', both meaning "two") is the three-dimensional surface of revolution of a rhombus around one of its axes of symmetry. Equivalently, a bicone is the surface created by joining two con ...
* Regular
octahedron
In geometry, an octahedron (: octahedra or octahedrons) is any polyhedron with eight faces. One special case is the regular octahedron, a Platonic solid composed of eight equilateral triangles, four of which meet at each vertex. Many types of i ...
*
Cube
A cube or regular hexahedron is a three-dimensional space, three-dimensional solid object in geometry, which is bounded by six congruent square (geometry), square faces, a type of polyhedron. It has twelve congruent edges and eight vertices. It i ...
, as a limiting case where the exponents tend to infinity
Piet Hein's
supereggs are also special cases of superellipsoids.
Formulas
Basic (normalized) superellipsoid
The basic superellipsoid is defined by the
implicit function
In mathematics, an implicit equation is a relation of the form R(x_1, \dots, x_n) = 0, where is a function of several variables (often a polynomial). For example, the implicit equation of the unit circle is x^2 + y^2 - 1 = 0.
An implicit func ...
:
The parameters
and
are positive real numbers that control the squareness of the shape.
The surface of the superellipsoid is defined by the equation:
For any given point
, the point lies inside the superellipsoid if
, and outside if
.
Any "
parallel of latitude" of the superellipsoid (a horizontal section at any constant ''z'' between -1 and +1) is a
Lamé curve with exponent
, scaled by
, which is
:
Any "
meridian of longitude" (a section by any vertical plane through the origin) is a Lamé curve with exponent
, stretched horizontally by a factor ''w'' that depends on the sectioning plane. Namely, if
and
, for a given
, then the section is
:
where
:
In particular, if
is 1, the horizontal cross-sections are circles, and the horizontal stretching
of the vertical sections is 1 for all planes. In that case, the superellipsoid is a
solid of revolution
In geometry, a solid of revolution is a Solid geometry, solid figure obtained by rotating a plane figure around some straight line (the ''axis of revolution''), which may not Intersection (geometry), intersect the generatrix (except at its bound ...
, obtained by rotating the Lamé curve with exponent
around the vertical axis.
Superellipsoid
The basic shape above extends from −1 to +1 along each coordinate axis. The general superellipsoid is obtained by scaling the basic shape along each axis by factors
,
,
, the semi-diameters of the resulting solid. The implicit function is
:
.
Similarly, the surface of the superellipsoid is defined by the equation
For any given point
, the point lies inside the superellipsoid if
, and outside if
.
Therefore, the implicit function is also called the inside-outside function of the superellipsoid.
The superellipsoid has a
parametric representation
In mathematics, a parametric equation expresses several quantities, such as the coordinates of a point, as functions of one or several variables called parameters.
In the case of a single parameter, parametric equations are commonly used to ...
in terms of surface parameters
,
.
:
:
:
General posed superellipsoid
In computer vision and robotic applications, a superellipsoid with a general pose in the 3D Euclidean space is usually of more interest.
For a given Euclidean transformation of the superellipsoid frame
relative to the world frame, the implicit function of a general posed superellipsoid surface defined the world frame is
where
is the transformation operation that maps the point
in the world frame into the canonical superellipsoid frame.
Volume of superellipsoid
The volume encompassed by the superelllipsoid surface can be expressed in terms of the
beta function
In mathematics, the beta function, also called the Euler integral of the first kind, is a special function that is closely related to the gamma function and to binomial coefficients. It is defined by the integral
: \Beta(z_1,z_2) = \int_0^1 t^ ...
s
,
or equivalently with the
Gamma function
In mathematics, the gamma function (represented by Γ, capital Greek alphabet, Greek letter gamma) is the most common extension of the factorial function to complex numbers. Derived by Daniel Bernoulli, the gamma function \Gamma(z) is defined ...
, since
Recovery from data
Recoverying the superellipsoid (or superquadrics) representation from raw data (e.g., point cloud, mesh, images, and voxels) is an important task in computer vision,
robotics,
and physical simulation.
Traditional computational methods model the problem as a least-square problem.
The goal is to find out the optimal set of superellipsoid parameters