HOME

TheInfoList



OR:

In
geometry Geometry (; ) is, with arithmetic, one of the oldest branches of mathematics. It is concerned with properties of space such as the distance, shape, size, and relative position of figures. A mathematician who works in the field of geometry is c ...
and
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 de ...
, a supertoroid or supertorus is usually understood to be a family of
doughnut A doughnut or donut () is a type of food made from leavened fried dough. It is popular in many countries and is prepared in various forms as a sweet snack that can be homemade or purchased in bakeries, supermarkets, food stalls, and franc ...
-like surfaces (technically, a topological
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 tou ...
) whose shape is defined by mathematical formulas similar to those that define the
superquadric In mathematics, the superquadrics or super-quadrics (also superquadratics) are a family of geometry, geometric shapes defined by formulas that resemble those of ellipsoids and other quadrics, except that the square (algebra), squaring operations a ...
s. The plural of "supertorus" is either supertori or supertoruses. The family was described and named by Alan Barr in 1994.Alan H. Barr (1981) ''Superquadrics and Angle-Preserving Transformations''. IEEE Computer Graphics and Applications, volume 1 issue 1. pp. 11-23. Barr's supertoroids have been fairly popular in computer graphics as a convenient model for many objects, such as smooth frames for rectangular things. One quarter of a supertoroid can provide a smooth and seamless 90-degree joint between two superquadric
cylinder 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 infin ...
s. However, they are not
algebraic surface In mathematics, an algebraic surface is an algebraic variety of dimension two. In the case of geometry over the field of complex numbers, an algebraic surface has complex dimension two (as a complex manifold, when it is non-singular) and so of di ...
s (except in special cases).


Formulas

Alan Barr's supertoroids are defined by parametric equations similar to the trigonometric equations of the torus, except that the
sine In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side that is oppo ...
and cosine terms are raised to arbitrary
powers Powers may refer to: Arts and media * ''Powers'' (comics), a comic book series by Brian Michael Bendis and Michael Avon Oeming ** ''Powers'' (American TV series), a 2015–2016 series based on the comics * ''Powers'' (British TV series), a 200 ...
. Namely, the generic point ''P''(''u'', ''v'') of the surface is given by : P(u,v) = \left(\begin X(u,v)\\ Y(u,v)\\ Z(u,v) \end\right) = \left(\begin (a + C_^) C_^\\ (b + C_^) S_^\\ S_^ \end\right) where C_^ = \operatorname(\cos \theta)\left, \cos\theta\^\epsilon, S_^ = \operatorname(\sin \theta)\left, \sin\theta\^\epsilon, and the parameters ''u'' and ''v'' range from 0 to 360 degrees (0 to 2''π''
radian The radian, denoted by the symbol rad, is the unit of angle in the International System of Units (SI) and is the standard unit of angular measure used in many areas of mathematics. The unit was formerly an SI supplementary unit (before that c ...
s). In these formulas, the parameter ''s'' > 0 controls the "squareness" of the vertical sections, ''t'' > 0 controls the squareness of the horizontal sections, and ''a'', ''b'' ≥ 1 are the major radii in the ''X'' and ''Y'' directions. With ''s''=''t''=1 and ''a''=''b''=''R'' one obtains the ordinary torus with major radius ''R'' and minor radius 1, with the center at the origin and
rotational symmetry Rotational symmetry, also known as radial symmetry in geometry, is the property a shape has when it looks the same after some rotation by a partial turn. An object's degree of rotational symmetry is the number of distinct orientations in which i ...
about the ''Z'' axis. In general, the supertorus defined as above spans the
intervals Interval may refer to: Mathematics and physics * Interval (mathematics), a range of numbers ** Partially ordered set#Intervals, its generalization from numbers to arbitrary partially ordered sets * A statistical level of measurement * Interval est ...
(a+1),+(a+1)/math> in ''X'', (b+1),+(b+1)/math> in ''Y'', and
1,+1 Onekama ( ) is a village in Manistee County in the U.S. state of Michigan. The population was 411 at the 2010 census. The village is located on the shores of Portage Lake and is surrounded by Onekama Township. The town's name is derived from "On ...
/math> in ''Z''. The whole shape is symmetric about the planes ''X''=0, ''Y''=0, and ''Z''=0. The hole runs in the ''Z'' direction and spans the intervals (a-1),+(a-1)/math> in ''X'' and (b-1),+(b-1)/math> in ''Y''. A curve of constant ''u'' on this surface is a horizontal
Lamé curve 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 ...
with exponent 2/''t'', scaled in ''X'' and ''Y'' and displaced in ''Z''. A curve of constant ''v'', projected on the plane ''X''=0 or ''Y''=0, is a Lamé curve with exponent 2/''s'', scaled and horizontally shifted. If ''v'' is 0, the curve is planar and spans the interval -1,a+1/math> in ''X'', and
1,+1 Onekama ( ) is a village in Manistee County in the U.S. state of Michigan. The population was 411 at the 2010 census. The village is located on the shores of Portage Lake and is surrounded by Onekama Township. The town's name is derived from "On ...
/math> in ''Z''; and similarly if ''v'' is 90, 180, or 270 degrees. The curve is also planar if ''a'' = ''b''. In general, if ''a''≠''b'' and ''v'' is not a multiple of 90 degrees, the curve of constant ''v'' will not be planar; and, conversely, a vertical plane section of the supertorus will not be a Lamé curve. The basic supertoroid shape defined above is often modified by non-uniform scaling to yield supertoroids of specific width, length, and vertical thickness.


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 langu ...
code generates plots of a supertorus: function supertoroid(epsilon,a) n=50; d=.1; etamax=pi; etamin=-pi; wmax=pi; wmin=-pi; deta=(etamax-etamin)/n; dw=(wmax-wmin)/n; k=0; l=0; for i=1:n+1 eta(i)=etamin+(i-1)*deta; for j=1:n+1 w(j)=wmin+(j-1)*dw; x(i,j)=a(1)*(a(4)+sign(cos(eta(i)))*abs(cos(eta(i)))^epsilon(1))*sign(cos(w(j)))*abs(cos(w(j)))^epsilon(2); y(i,j)=a(2)*(a(4)+sign(cos(eta(i)))*abs(cos(eta(i)))^epsilon(1))*sign(sin(w(j)))*abs(sin(w(j)))^epsilon(2); z(i,j)=a(3)*sign(sin(eta(i)))*abs(sin(eta(i)))^epsilon(1); endfor; endfor; mesh(x,y,z); endfunction;


See also

*
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 ''t ...
* Superegg *
Superquadric In mathematics, the superquadrics or super-quadrics (also superquadratics) are a family of geometry, geometric shapes defined by formulas that resemble those of ellipsoids and other quadrics, except that the square (algebra), squaring operations a ...


References

{{Reflist Surfaces Computer graphics