Barycentric Coordinates Made Clear: From a UV Triangle to a 3D Triangle
Barycentric Coordinates Made Clear: From a UV Triangle to a 3D Triangle This post explains, in plain language, why a simple triangular region in a 2-dimensional parameter space can describe every point of a real triangle in 3-dimensional space. Through one clean affine formula, the 2D parameters (u, v) determine points on a 3D triangle. Once this connection is seen, concepts such as interpolation, texture mapping, geometric modelling, and FEM become much easier to understand. Two Worlds Connected by a Map 1) Parameter World (UV-space, 2D) Start in a flat coordinate plane labelled by two parameters, u and v . Consider the square defined by 0 ≤ u ≤ 1 0 ≤ v ≤ 1 If we cut this square along the diagonal line u + v = 1 (or equivalently v = −u + 1 ), we keep only the triangular region 0 ≤ u ≤ 1 0 ≤ v ≤ 1 u + v ≤ 1 This triangle has vertices (0,0) , (1,0) , (0,1) and is called the standard 2-simplex . Every point inside it is a convex mixture of its three corners. 2...