Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plotting polyhedra

  • To: mathgroup at
  • Subject: [mg62223] Re: [mg62207] Plotting polyhedra
  • From: "David Park" <djmp at>
  • Date: Wed, 16 Nov 2005 02:28:26 -0500 (EST)
  • Sender: owner-wri-mathgroup at


How about this?

v1 = {0, 0, 0};
v2 = {1, 0, 0};
v3 = {0, 1, 0};
v4 = {0, 0, 1};

Show[Graphics3D[{Polygon[{v1, v2, v3}], Polygon[{v1, v2, v4}], 
        Polygon[{v1, v4, v3}], Polygon[{v4, v2, v3}]}]];

But if you are going to plot many tetrahedrons...

tetrahedron[{v1_, v2_, v3_, v4_}] := {Polygon[{v1, v2, v3}], 
      Polygon[{v1, v2, v4}], Polygon[{v1, v4, v3}], Polygon[{v4, v2, v3}]};

      {tetrahedron[{v1, v2, v3, v4}],
        tetrahedron[{{1, 1, 1}, {1, 2, 3}, {2, 4, 1}, {3, 2, 1}}]}]

David Park
djmp at 

From: King, Peter R [mailto:peter.king at]
To: mathgroup at

I wish to be able to plot polyhedra given a table of (xyz) coordinates
for vertices. I'd be happy if I was restricted to tetrahedra, but would
prefer to be able to deal with general polyhedra. I can always plot the
polygons that make up the faces of the polyhedron but this seems a bit
tedious, is there a more efficient way than (for example)


Which involves putting in the coordinates of each vertex 3 times.


  • Prev by Date: Re: FullSimplify Hang?
  • Next by Date: Re: FullSimplify Hang?
  • Previous by thread: Re: Plotting polyhedra
  • Next by thread: Solved:Re: Defining variables in $UserBaseDirectory/init.m