
In
mathematics, the superquadrics or super-quadrics (also superquadratics) are a family of
geometric shapes
Geometric Shapes is a Unicode block of 96 symbols at code point range U+25A0–25FF.
U+25A0–U+25CF
The BLACK CIRCLE is displayed when typing in a password field, in order to hide characters from a screen recorder or shoulder surfing.
U ...
defined by formulas that resemble those of
ellipsoid
An ellipsoid is a surface that may be obtained from a sphere by deforming it by means of directional scalings, or more generally, of an affine transformation.
An ellipsoid is a quadric surface; that is, a surface that may be defined as the ...
s and other
quadric
In mathematics, a quadric or quadric surface (quadric hypersurface in higher dimensions), is a generalization of conic sections ( ellipses, parabolas, and hyperbolas). It is a hypersurface (of dimension ''D'') in a -dimensional space, and it is ...
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 a different overall shape.
In the C ...
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 t ...
, 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
In geometry, a cube is a three-dimensional solid object bounded by six square faces, facets or sides, with three meeting at each vertex. Viewed from a corner it is a hexagon and its net is usually depicted as a cross.
The cube is the on ...
s,
octahedra
In geometry, an octahedron (plural: octahedra, octahedrons) is a polyhedron with eight faces. The term is most commonly used to refer to the regular octahedron, a Platonic solid composed of eight equilateral triangles, four of which meet at ...
,
cylinders
A cylinder (from ) 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 infini ...
,
lozenge
Lozenge or losange may refer to:
*Lozenge (shape), a type of rhombus
*Throat lozenge, a tablet intended to be dissolved slowly in the mouth to suppress throat ailments
*Lozenge (heraldry), a diamond-shaped object that can be placed on the field of ...
s and
spindle
Spindle may refer to:
Textiles and manufacturing
* Spindle (textiles), a straight spike to spin fibers into yarn
* Spindle (tool), a rotating axis of a machine tool
Biology
* Common spindle and other species of shrubs and trees in genus '' Euony ...
s, with rounded or sharp corners. Because of their flexibility and relative simplicity, they are popular
geometric model
__NOTOC__
Geometric modeling is a branch of applied mathematics and computational geometry that studies methods and algorithms for the mathematical description of shapes.
The shapes studied in geometric modeling are mostly two- or three-dimensi ...
ing tools, especially in
computer graphics
Computer graphics deals with generating images with the aid of computers. Today, computer graphics is a core technology in digital photography, film, video games, cell phone and computer displays, and many specialized applications. A great deal ...
.
Some authors, such as
Alan Barr, define "superquadrics" as including both the
superellipsoid
In mathematics, a superellipsoid (or super-ellipsoid) is a solid whose horizontal sections are superellipses (Lamé curves) with the same exponent ''r'', and whose vertical sections through the center are superellipses with the same exponent '' ...
s and the
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 su ...
s.
[Alan H. Barr (1992), ''Rigid Physically Based Superquadrics''. Chapter III.8 of ''Graphics Gems III'', edited by D. Kirk, pp. 137–159] However, the (proper) supertoroids are not superquadrics as defined above; and, while some superquadrics are superellipsoids, neither family is contained in the other.
Comprehensive coverage of geometrical properties of superquadrics and a method of their recovery from
range image
Range imaging is the name for a collection of techniques that are used to produce a 2D image showing the distance to points in a scene from a specific point, normally associated with some type of sensor device.
The resulting range image has pix ...
s is covered in a monograph.
[Aleš Jaklič, Aleš Leonardis, Franc Solina (2000) ''Segmentation and Recovery of Superquadrics''. Kluwer Academic Publishers, Dordrecht]
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
Concave or concavity may refer to:
Science and technology
* Concave lens
* Concave mirror
Mathematics
* Concave function, the negative of a convex function
* Concave polygon, a polygon which is not convex
* Concave set
In geometry, a subset ...
faces and sharp
edges.
* exactly 1: a regular
octahedron
In geometry, an octahedron (plural: octahedra, octahedrons) is a polyhedron with eight faces. The term is most commonly used to refer to the regular octahedron, a Platonic solid composed of eight equilateral triangles, four of which meet at e ...
.
* 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
Infinite may refer to:
Mathematics
*Infinite set, a set that is not a finite set
*Infinity, an abstract concept describing something without any limit
Music
*Infinite (group)
Infinite ( ko, 인피니트; stylized as INFINITE) is a South Ko ...
(in the
limit
Limit or Limits may refer to:
Arts and media
* ''Limit'' (manga), a manga by Keiko Suenobu
* ''Limit'' (film), a South Korean film
* Limit (music), a way to characterize harmony
* "Limit" (song), a 2016 single by Luna Sea
* "Limits", a 2019 ...
): 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 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 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 an odd mathematical function that extracts the sign of a real number. In mathematical expressions the sign function is often represented as . To a ...
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 () is a Geometry, geometrical object that is a solid geometry, three-dimensional analogue to a two-dimensional circle. 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 may be obtained from a sphere by deforming it by means of directional scalings, or more generally, of an affine transformation.
An ellipsoid is a quadric surface; that is, a surface that may be defined as the ...
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 de ...
s as well as the
torus
In geometry, a torus (plural tori, colloquially donut or doughnut) is a surface of revolution generated by revolving a circle in three-dimensional space about an axis that is coplanar with the circle.
If the axis of revolution does not ...
,
superellipsoid
In mathematics, a superellipsoid (or super-ellipsoid) is a solid whose horizontal sections are superellipses (Lamé curves) with the same exponent ''r'', and whose vertical sections through the center are superellipses with the same exponent '' ...
, superquadric hyperboloids of one and two sheets, and supertoroids.
Plotting code
The following
GNU Octave
GNU Octave is a high-level programming language primarily intended for scientific computing and numerical computation. Octave helps in solving linear and nonlinear problems numerically, and for performing other numerical experiments using a lang ...
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
In geometry, a superegg is a solid of revolution obtained by rotating an elongated superellipse with exponent greater than 2 around its longest axis. It is a special case of superellipsoid.
Unlike an elongated ellipsoid, an elongated su ...
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 organized, open-source collection of small (or medium-size) interactive programs called Demonstrations, which are meant to visually and interactively represent ideas from a range of fields. It is hos ...
.
Superquadrics in Python
Computer graphics