Supertoroid
   HOME

TheInfoList



OR:

In
geometry Geometry (; ) is a branch of mathematics concerned with properties of space such as the distance, shape, size, and relative position of figures. Geometry is, along with arithmetic, one of the oldest branches of mathematics. A mathematician w ...
and
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. ...
, a supertoroid or supertorus is usually understood to be a family of
doughnut A doughnut or donut () is a type of pastry 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 fran ...
-like
surfaces A surface, as the term is most generally used, is the outermost or uppermost layer of a physical object or space. Surface or surfaces may also refer to: Mathematics *Surface (mathematics), a generalization of a plane which needs not be flat * Sur ...
(technically, a
topological Topology (from the Greek words , and ) is the branch of mathematics concerned with the properties of a geometric object that are preserved under continuous deformations, such as stretching, twisting, crumpling, and bending; that is, wit ...
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 ...
) whose shape is defined by mathematical formulas similar to those that define 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. 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 () 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 ...
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 opposite th ...
and
cosine 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 opposite that ...
terms are raised to arbitrary powers. Namely, the generic point 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 \begin C_\theta^\varepsilon &= \operatorname(\cos \theta) \, \left, \, \cos\theta \, \^\varepsilon, \\ S_\theta^\varepsilon &= \operatorname(\sin \theta) \ \left, \, \sin\theta \ \^\varepsilon, \end is 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 ...
, and the parameters 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. It is defined such that one radian is the angle subtended at ...
s). In these formulas, the parameter controls the "squareness" of the vertical sections, controls the squareness of the horizontal sections, and are the major radii in the and directions. With and one obtains the ordinary torus with major radius 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 (geometry), shape has when it looks the same after some rotation (mathematics), rotation by a partial turn (angle), turn. An object's degree of rotational s ...
about the -axis. In general, the supertorus defined as above spans the intervals: \begin -(a+1) &\leq& x &\leq& +(a+1) \\ pt -(b+1) &\leq& y &\leq& +(b+1) \\ pt -1 &\leq& z &\leq& +1 \end The whole shape is symmetric about the planes , , and . The hole runs in the direction and spans the intervals \begin -(a-1) &\leq& x &\leq& +(a-1) \\ pt -(b-1) &\leq& y &\leq& +(b-1) \\ pt -\infty &\leq& z &\leq& +\infty \end A curve of constant on this surface is a horizontal Lamé curve with exponent scaled in and and displaced in . A curve of constant , projected on the plane or , is a Lamé curve with exponent scaled and horizontally shifted. If , the curve is planar and spans the intervals: \begin a-1 &\leq& x &\leq& a+1 \\ pt -1 &\leq& z &\leq& +1 \end and similarly if . The curve is also planar if . In general, if and is not a multiple of 90 degrees, the curve of constant 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 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 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 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 ...
* Superegg * Superquadric


References

{{Reflist Surfaces Computer graphics