In the GUI below, choose three points in the plane the plane (z = 0) to make a triangle, and then select a fourth point. Left click to select the points, and right click to delete the most recently selected point. Once the fourth point is selected, that triangles will be drawn. The barycentric coordinates can then be computed by the area ratios shown below
NOTE: This GUI runs in the plane for simplicity (all z coordinates are zero), but the same phenomenon will happen in 3D.
The ratios of the areas of triangles can be used to compute the barycentric coordinates. If the point d is inside the triangle abc, then the following rules apply:
If the point is outside the triangle (either in the same plane but outside, or above or below the plane of the triangle), then