Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica tetrahedron

  1. Aug 24, 2010 #1
    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!
     
  2. jcsd
  3. Aug 25, 2010 #2
    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}]}]]
     
  4. Aug 25, 2010 #3
    Last edited by a moderator: Apr 25, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Mathematica tetrahedron
  1. In mathematica (Replies: 4)

  2. Mathematica and Sums (Replies: 4)

  3. Mathematica Sums (Replies: 6)

  4. Mathematica NDSolve (Replies: 27)

Loading...