Making a Tetrahedron in Mathematica

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
jemma
Messages
35
Reaction score
0
I want to make a tetrahedron in mathematica. For example, suppose:

{a = 0.2, b = 0.5, c = 0.1, d = 0.3}
{a = 0.1, b = 0.2, c = 0.4, d = 0.3}
{a = 0.4, b = 0.3, c = 0.2, d = 0.1}
{a = 0.6, b = 0.2, c = 0.1, d = 0.1}

and I want a tetrahedrom so that the four points are a, b, c and d - and the values are plotted within the space (each set with a unique symbol such as circles, squares, etc)

Thanks in advance if you can help!
 
Physics news on Phys.org
Do you mean to give each point x,y,z coordinates?

If so then perhaps something like this

a={0.2,0.5,0.1};b={0.1,0.2,0.4};c={0.4,0.3,0.2};d={0.6,0.2,0.1};
Show[Graphics3D[{Polygon[{a,b,c}], Polygon[{a,b,d}],Polygon[{b,c,d}],Polygon[{c,a,d}]}]]