Jump to content

Superquadrics

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 2406:3003:2005:3c40:d1ea:1c48:1f8a:481b (talk) at 06:55, 8 February 2023 (External links). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Some 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 powers. They can be seen as the three-dimensional relatives of the superellipses. The term may refer to the solid object or to its surface, 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 cubes, octahedra, cylinders, 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.

Some authors, such as Alan Barr, define "superquadrics" as including both the superellipsoids and the supertoroids.[1][2] However, the (proper) supertoroids are not superquadrics as defined above; and, while some superquadrics are superellipsoids, neither family is contained in the other. 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.[3][4] Comprehensive coverage of geometrical properties of superquadrics and methods of their recovery from range images and point clouds are covered in several computer vision papers.[5][4][6]

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.
  • 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 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 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: which give rise to the name spherical product.

Barr uses the spherical product to define quadric surfaces, like ellipsoids, and hyperboloids as well as the torus, superellipsoid, superquadric hyperboloids of one and two sheets, and supertoroids.[1]

Plotting code

The following GNU Octave 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;
  [i,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

References

  1. ^ a b Barr (1 January 1981). "Superquadrics and Angle-Preserving Transformations". IEEE Computer Graphics and Applications. 1 (1): 11–23. doi:10.1109/MCG.1981.1673799. ISSN 0272-1716.
  2. ^ Alan H. Barr (1992), Rigid Physically Based Superquadrics. Chapter III.8 of Graphics Gems III, edited by D. Kirk, pp. 137–159
  3. ^ Paschalidou, Despoina; Ulusoy, Ali Osman; Geiger, Andreas (2019). "Superquadrics Revisited: Learning 3D Shape Parsing Beyond Cuboids". 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR): 10336–10345. doi:10.1109/CVPR.2019.01059.
  4. ^ a b Liu, Weixiao; Wu, Yuwei; Ruan, Sipu; Chirikjian, Gregory S. (2022). "Robust and Accurate Superquadric Recovery: a Probabilistic Approach". 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR): 2666–2675. doi:10.1109/CVPR52688.2022.00270.
  5. ^ Aleš Jaklič, Aleš Leonardis, Franc Solina (2000) Segmentation and Recovery of Superquadrics. Kluwer Academic Publishers, Dordrecht
  6. ^ Wu, Yuwei; Liu, Weixiao; Ruan, Sipu; Chirikjian, Gregory S. (2022). Avidan, Shai; Brostow, Gabriel; Cissé, Moustapha; Farinella, Giovanni Maria; Hassner, Tal (eds.). "Primitive-Based Shape Abstraction via Nonparametric Bayesian Inference". Computer Vision – ECCV 2022. Cham: Springer Nature Switzerland: 479–495. doi:10.1007/978-3-031-19812-0_28. ISBN 978-3-031-19812-0.