3

enter image description here

enter image description here

I tried to draw first picture with Raster3D, but the result is strange:

enter image description here

So, what is best function to call to draw 3d polygon like that?

Sayakiss
  • 859
  • 7
  • 13

1 Answers1

8

Here is something to get you started, look at Cuboid

Show[Graphics3D[{Directive[#1], Cuboid[{0, 0, 0}, #2]}] & @@@ {
   {Red, {1, 1, 1}},
   {Blue, {1, -1, 1}},
   {Green, {-1, -1, 1}},
   {Gray, {-1, 1, -1}},
   {Blue, {-1, 1, 1}}}
 , Boxed -> False]

enter image description here

Jason B.
  • 68,381
  • 3
  • 139
  • 286