Mathematica Making a Tetrahedron in Mathematica

AI Thread Summary
To create a tetrahedron in Mathematica using specified points, the discussion focuses on defining the points a, b, c, and d with their respective coordinates. The suggested coordinates are a={0.2,0.5,0.1}, b={0.1,0.2,0.4}, c={0.4,0.3,0.2}, and d={0.6,0.2,0.1}. The method to visualize the tetrahedron involves using the Graphics3D function to plot polygons representing the faces of the tetrahedron formed by these points. The user also expresses a desire for the visual output to resemble a specific tetrahedron illustration found in a book on evolutionary genetics, indicating an interest in representing allele equilibrium within the tetrahedron's space.
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}]}]]
 
Last edited by a moderator:

Similar threads

Replies
18
Views
4K
Replies
1
Views
2K
Replies
3
Views
2K
Replies
3
Views
2K
Replies
9
Views
3K
Replies
5
Views
3K
Replies
6
Views
3K
Replies
1
Views
3K
Back
Top