
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 ...
, the superquadrics or super-quadrics (also superquadratics) are a family of
geometric shapes
A shape is a graphics, graphical representation of an object's form or its external boundary, outline, or external Surface (mathematics), surface. It is distinct from other object properties, such as color, Surface texture, texture, or material ...
defined by formulas that resemble those of
ellipsoid
An ellipsoid is a surface that can be obtained from a sphere by deforming it by means of directional Scaling (geometry), scalings, or more generally, of an affine transformation.
An ellipsoid is a quadric surface; that is, a Surface (mathemat ...
s and other
quadric
In mathematics, a quadric or quadric surface is a generalization of conic sections (ellipses, parabolas, and hyperbolas). In three-dimensional space, quadrics include ellipsoids, paraboloids, and hyperboloids.
More generally, a quadric hype ...
s, except that the
squaring operations are replaced by arbitrary powers. They can be seen as the three-dimensional relatives of the
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. The term may refer to the solid object or to its
surface
A surface, as the term is most generally used, is the outermost or uppermost layer of a physical object or space. It is the portion or region of the object that can first be perceived by an observer using the senses of sight and touch, and is ...
, depending on the context. The equations below specify the surface; the solid is specified by replacing the equality signs by less-than-or-equal signs.
The superquadrics include many shapes that resemble
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 ...
s,
octahedra,
cylinders
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 ...
,
lozenges and
spindles, with rounded or sharp corners.
Because of their flexibility and relative simplicity, they are popular
geometric modeling tools, especially in
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. ...
. It becomes an important
geometric primitive
In vector computer graphics, CAD systems, and geographic information systems, a geometric primitive (or prim) is the simplest (i.e. 'atomic' or irreducible) geometric shape that the system can handle (draw, store). Sometimes the subroutines ...
widely used in
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 ...
,
robotics, and physical simulation.
Some authors, such as
Alan Barr, define "superquadrics" as including both the
superellipsoid
In mathematics, a superellipsoid (or super-ellipsoid) is a solid geometry, solid whose horizontal sections are superellipses (Lamé curves) with the same squareness parameter \epsilon_2, and whose vertical sections through the center are superel ...
s and the
supertoroids.
[Alan H. Barr (1992), ''Rigid Physically Based Superquadrics''. Chapter III.8 of ''Graphics Gems III'', edited by D. Kirk, pp. 137–159] In modern computer vision literatures, superquadrics and
superellipsoids are used interchangeably, since
superellipsoids are the most representative and widely utilized shape among all the superquadrics.
Comprehensive coverage of geometrical properties of superquadrics and methods of their recovery from
range images and
point clouds are covered in several computer vision literatures.
Formulas
Implicit equation
The surface of the basic superquadric is given by
:
where ''r'', ''s'', and ''t'' are positive real numbers that determine the main features of the superquadric. Namely:
* less than 1: a pointy octahedron modified to have
concave faces and sharp
edges.
* exactly 1: a 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 ...
.
* between 1 and 2: an octahedron modified to have convex faces, blunt edges and blunt corners.
* exactly 2: a sphere
* greater than 2: a cube modified to have rounded edges and corners.
*
infinite (in the
limit): a cube
Each exponent can be varied independently to obtain combined shapes. For example, if ''r''=''s''=2, and ''t''=4, one obtains 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 ...
which resembles an ellipsoid with round cross-section but flattened ends. This formula is a special case of the superellipsoid's formula if (and only if) ''r'' = ''s''.
If any exponent is allowed to be negative, the shape extends to infinity. Such shapes are sometimes called super-hyperboloids.
The basic shape above spans from -1 to +1 along each coordinate axis. The general superquadric is the result of
scaling
Scaling may refer to:
Science and technology
Mathematics and physics
* Scaling (geometry), a linear transformation that enlarges or diminishes objects
* Scale invariance, a feature of objects or laws that do not change if scales of length, energ ...
this basic shape by different amounts ''A'', ''B'', ''C'' along each axis. Its general equation is
:
Parametric description
Parametric equations in terms of surface parameters ''u'' and ''v'' (equivalent to longitude and latitude if m equals 2) are
:
where the
auxiliary functions are
:
and the
sign function
In mathematics, the sign function or signum function (from '' signum'', Latin for "sign") is a function that has the value , or according to whether the sign of a given real number is positive or negative, or the given number is itself zer ...
sgn(''x'') is
:
Spherical product
Barr introduces the ''spherical product'' which given two plane curves produces a 3D surface. If
are two plane curves then the spherical product is
This is similar to the typical parametric equation of a
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 ...
:
which give rise to the name spherical product.
Barr uses the spherical product to define quadric surfaces, like
ellipsoid
An ellipsoid is a surface that can be obtained from a sphere by deforming it by means of directional Scaling (geometry), scalings, or more generally, of an affine transformation.
An ellipsoid is a quadric surface; that is, a Surface (mathemat ...
s, and
hyperboloid
In geometry, a hyperboloid of revolution, sometimes called a circular hyperboloid, is the surface generated by rotating a hyperbola around one of its principal axes. A hyperboloid is the surface obtained from a hyperboloid of revolution by def ...
s as well as the
torus
In geometry, a torus (: tori or toruses) is a surface of revolution generated by revolving a circle in three-dimensional space one full revolution about an axis that is coplanarity, coplanar with the circle. The main types of toruses inclu ...
,
superellipsoid
In mathematics, a superellipsoid (or super-ellipsoid) is a solid geometry, solid whose horizontal sections are superellipses (Lamé curves) with the same squareness parameter \epsilon_2, and whose vertical sections through the center are superel ...
, superquadric hyperboloids of one and two sheets, and supertoroids.
Plotting code
The following
GNU Octave
GNU Octave is a scientific programming language for scientific computing and numerical computation. Octave helps in solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly ...
code generates a mesh approximation of a superquadric:
function superquadric(epsilon,a)
n = 50;
etamax = pi/2;
etamin = -pi/2;
wmax = pi;
wmin = -pi;
deta = (etamax-etamin)/n;
dw = (wmax-wmin)/n;
,j= meshgrid(1:n+1,1:n+1)
eta = etamin + (i-1) * deta;
w = wmin + (j-1) * dw;
x = a(1) .* sign(cos(eta)) .* abs(cos(eta)).^epsilon(1) .* sign(cos(w)) .* abs(cos(w)).^epsilon(1);
y = a(2) .* sign(cos(eta)) .* abs(cos(eta)).^epsilon(2) .* sign(sin(w)) .* abs(sin(w)).^epsilon(2);
z = a(3) .* sign(sin(eta)) .* abs(sin(eta)).^epsilon(3);
mesh(x,y,z);
end
See also
*
Superegg
*
Superellipsoid
In mathematics, a superellipsoid (or super-ellipsoid) is a solid geometry, solid whose horizontal sections are superellipses (Lamé curves) with the same squareness parameter \epsilon_2, and whose vertical sections through the center are superel ...
*
Ellipsoid
An ellipsoid is a surface that can be obtained from a sphere by deforming it by means of directional Scaling (geometry), scalings, or more generally, of an affine transformation.
An ellipsoid is a quadric surface; that is, a Surface (mathemat ...
References
{{reflist
External links
Bibliography: SuperQuadric RepresentationsSuperquadric Tensor GlyphsSuperQuadric Ellipsoids and Toroids, OpenGL Lighting, and TimingSuperquadricsby Robert Kragler,
The Wolfram Demonstrations Project
The Wolfram Demonstrations Project is an open-source collection of interactive programmes called Demonstrations. It is hosted by Wolfram Research. At its launch, it contained 1300 demonstrations but has grown to over 10,000. The site won a Pa ...
.
Superquadrics in PythonSuperquadrics recovery algorithm in Python and MATLAB
Computer graphics
Computer vision
Geometry
Geometry in computer vision
Robotics engineering