CalcWorldHub
Free online calculator · no signup

Tetrahedron barycentric coordinates calculator

Express a 3D point relative to four noncoplanar vertices and inspect whether it lies in the closed tetrahedron.

4,000 tools
Tetrahedron barycentric coordinates calculator — First vertex x y z, Second vertex x y z, Third vertex x y z and calculation method
Tetrahedron barycentric coordinates calculator: inputs and calculation method.

How to use this calculator

Express a 3D point relative to four noncoplanar vertices and inspect whether it lies in the closed tetrahedron.

  1. Enter First vertex x y z, Second vertex x y z, Third vertex x y z, Fourth vertex x y z, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Tetrahedron barycentric coordinates explained

Barycentric weights express a point as an affine combination of the tetrahedron’s four vertices and show whether it lies inside the element.

First-vertex barycentric weight0.4
First-vertex barycentric weight: 0.4 in the worked scenario.

How the calculation works

p=λ0A+λ1B+λ2C+λ3D; sum λ=1

Use A as an origin and solve the 3×3 system with columns B−A, C−A, and D−A. Those three solution components are the last three weights; the A weight is one minus their sum. Nonnegative weights place the point in the closed tetrahedron.

Set up the calculation

a — First vertex x y z
First vertex x y z. Use comma-separated values in the stated order.
b — Second vertex x y z
Second vertex x y z. Use comma-separated values in the stated order.
c — Third vertex x y z
Third vertex x y z. Use comma-separated values in the stated order.
d — Fourth vertex x y z
Fourth vertex x y z. Use comma-separated values in the stated order.
p — Query point x y z
Query point x y z. Use comma-separated values in the stated order.

Limits of this model

Floating-point solve with a small containment tolerance; degenerate or poorly conditioned tetrahedra are rejected.

Check this example

First vertex x y z = 0, 0, 0; Second vertex x y z = 1, 0, 0; Third vertex x y z = 0, 1, 0; Fourth vertex x y z = 0, 0, 1; Query point x y z = 0.1, 0.2, 0.3.

  • First-vertex barycentric weight: 0.4
  • All four weights: 0.4, 0.1, 0.2, 0.3
  • Closed tetrahedron test: Inside or on boundary

The four weights sum to one and are all nonnegative, placing the query point inside the tetrahedron.

Frequently asked questions

Can weights be negative?

Yes, for points outside the tetrahedron.

Why do weights sum to one?

They define an affine combination of vertices.

Is a point on a face inside?

It is included in the closed-volume classification.

How do I use the Tetrahedron barycentric coordinates calculator?

Enter First vertex x y z, Second vertex x y z, Third vertex x y z, Fourth vertex x y z, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Tetrahedron barycentric coordinates?

First vertex x y z = 0, 0, 0; Second vertex x y z = 1, 0, 0; Third vertex x y z = 0, 1, 0; Fourth vertex x y z = 0, 0, 1; Query point x y z = 0.1, 0.2, 0.3. First-vertex barycentric weight: 0.4 All four weights: 0.4, 0.1, 0.2, 0.3 Closed tetrahedron test: Inside or on boundary The four weights sum to one and are all nonnegative, placing the query point inside the tetrahedron.