Inside a Triangle with Three Weights

Barycentric weights express a point as a combination of three triangle vertices whose coefficients sum to one.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a simple point
  2. Use the weights for attributes

Trace a simple point

For vertices \((0,0),(2,0),(0,2)\), weights \((1/2,1/4,1/4)\) produce \((0.5,0.5)\). Nonnegative weights here give an interior point. See weighted means.

Use the weights for attributes

The same weights can combine one assigned value per vertex for linear interpolation. Triangle interpolation gives the derivation and geometric boundary cases.[1]

References

  1. Matt Pharr, Wenzel Jakob and Greg Humphreys, Physically Based Rendering ↩