Bézier triangle
   HOME

TheInfoList



OR:

A Bézier triangle is a special type of
Bézier surface Bézier surfaces are a species of mathematical spline used in computer graphics, computer-aided design, and finite element modeling. As with Bézier curves, a Bézier surface is defined by a set of control points. Similar to interpolation in man ...
that is created by (
linear Linearity is the property of a mathematical relationship ('' function'') that can be graphically represented as a straight line. Linearity is closely related to '' proportionality''. Examples in physics include rectilinear motion, the linear ...
, quadratic, cubic or higher degree) interpolation of control points.


''n''th-order Bézier triangle

A general ''n''th-order Bézier triangle has (''n'' +1)(''n'' + 2)/2 control points ''α''''i''''β''''j''''γ''''k'' where ''i'', ''j'', ''k'' are non-negative
integer An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the languag ...
s such that ''i'' + ''j'' + ''k'' = ''n''. The surface is then defined as : (\alpha s + \beta t + \gamma u)^n = \sum_ s^i t^j u^k \alpha^i \beta^j \gamma^k = \sum_ \frac s^i t^j u^k \alpha^i \beta^j \gamma^k for all non-negative
real number In mathematics, a real number is a number that can be used to measure a ''continuous'' one-dimensional quantity such as a distance, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small variations. Every ...
s ''s'' + ''t'' + ''u'' = 1. With
linear Linearity is the property of a mathematical relationship ('' function'') that can be graphically represented as a straight line. Linearity is closely related to '' proportionality''. Examples in physics include rectilinear motion, the linear ...
order (n=1), the resulting Bézier triangle is actually a regular flat
triangle A triangle is a polygon with three edges and three vertices. It is one of the basic shapes in geometry. A triangle with vertices ''A'', ''B'', and ''C'' is denoted \triangle ABC. In Euclidean geometry, any three points, when non- colline ...
, with the triangle vertices equaling the three control points. A quadratic (n=2) Bézier triangle features 6 control points which are all located on the edges. The cubic (n=3) Bézier triangle is defined by 10 control points and is the lowest order Bézier triangle that has an internal control point, not located on the edges. In all cases, the edges of the triangle will be Bézier curves of the same degree.


Cubic Bézier triangle

A cubic Bézier triangle is a
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 ...
with the equation :\begin p(s, t, u) = (\alpha s+\beta t+\gamma u)^3 =\; & \beta^3\, t^3 + 3\, \alpha\beta^2\, st^2 + 3\, \beta^2\gamma\, t^2 u\; + \\ &3\, \alpha^2\beta\, s^2 t + 6\, \alpha\beta\gamma\, stu + 3\, \beta\gamma^2\, tu^2\, + \\ &\alpha^3\, s^3+ 3\, \alpha^2\gamma\, s^2 u + 3\, \alpha\gamma^2\, su^2 + \gamma^3\, u^3 \end where α3, β3, γ3, α2β, αβ2, β2γ, βγ2, αγ2, α2γ and αβγ are the control points of the triangle and ''s'', ''t'', ''u'' (with 0 ≤ ''s'', ''t'', ''u'' ≤ 1 and ''s'' + ''t'' + ''u'' = 1) are the
barycentric coordinates In mathematics, an affine space is a geometric structure that generalizes some of the properties of Euclidean spaces in such a way that these are independent of the concepts of distance and measure of angles, keeping only the properties related ...
inside the triangle. Alternatively, a cubic Bézier triangle can be expressed as a more generalized formulation as :\begin p(s, t, u) &= \sum_ s^i t^j u^k \alpha^i \beta^j \gamma^k = \sum_ \frac s^i t^j u^k \alpha^i \beta^j \gamma^k \end in accordance with the formulation of the . The corners of the triangle are the points α3, β3 and γ3. The edges of the triangle are themselves Bézier curves, with the same control points as the Bézier triangle. By removing the γ''u'' term, a regular Bézier curve results. Also, while not very useful for display on a physical computer screen, by adding extra terms, a Bézier
tetrahedron In geometry, a tetrahedron (plural: tetrahedra or tetrahedrons), also known as a triangular pyramid, is a polyhedron composed of four triangular faces, six straight edges, and four vertex corners. The tetrahedron is the simplest of all th ...
or Bézier
polytope In elementary geometry, a polytope is a geometric object with flat sides ('' faces''). Polytopes are the generalization of three-dimensional polyhedra to any number of dimensions. Polytopes may exist in any general number of dimensions as an ...
results. Due to the nature of the equation, the entire triangle will be contained within the volume surrounded by the control points, and affine transformations of the control points will correctly transform the whole triangle in the same way.


Halving a cubic Bézier triangle

An advantage of Bézier triangles in computer graphics is that dividing the Bézier triangle into two separate Bézier triangles requires only addition and division by two, rather than
floating point In computing, floating-point arithmetic (FP) is arithmetic that represents real numbers approximately, using an integer with a fixed precision, called the significand, scaled by an integer exponent of a fixed base. For example, 12.345 can b ...
arithmetic. This means that while Bézier triangles are smooth, they can easily be approximated using regular triangles by
recursively Recursion (adjective: ''recursive'') occurs when a thing is defined in terms of itself or of its type. Recursion is used in a variety of disciplines ranging from linguistics to logic. The most common application of recursion is in mathematics ...
dividing the triangle in two until the resulting triangles are considered sufficiently small. The following computes the new control points for the half of the full Bézier triangle with the corner α3, a corner halfway along the Bézier curve between α3 and β3, and the third corner γ3. : \begin \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol \end=\begin 1&0&0&0&0&0&0&0&0&0\\ &&0&0&0&0&0&0&0&0\\ &&&0&0&0&0&0&0&0\\ &&&&0&0&0&0&0&0\\ 0&0&0&0&1&0&0&0&0&0\\ 0&0&0&0&&&0&0&0&0\\ 0&0&0&0&&&&0&0&0\\ 0&0&0&0&0&0&0&1&0&0\\ 0&0&0&0&0&0&0&&&0\\ 0&0&0&0&0&0&0&0&0&1 \end\cdot\begin \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol\\ \boldsymbol \end :equivalently, using addition and division by two only, : :where := means to replace the vector on the left with the vector on the right. :Note that halving a Bézier triangle is similar to halving Bézier curves of all orders up to the order of the Bézier triangle.


See also

* Bézier curve *
Bézier surface Bézier surfaces are a species of mathematical spline used in computer graphics, computer-aided design, and finite element modeling. As with Bézier curves, a Bézier surface is defined by a set of control points. Similar to interpolation in man ...
(biquadratic patches are Bézier rectangles) *
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 ...


References


External links


Quadratic Bézier Triangles As Drawing Primitives
Contains more info on planar and quadratic Bézier triangles.
Paper about the use of cubic Bézier patches in raytracing (German)
* *
Curved PN triangles (a special kind of cubic Bézier triangles)

Shape aware normal interpolation for curved surface shading from polyhedral approximation

Pixel-Shader-Based Curved Triangles
* {{DEFAULTSORT:Bezier Triangle Surfaces Multivariate interpolation