Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

closed as off-topic by JasonB, Yves Klett, Louis, MarcoB, Dr. belisarius Jan 21 at 6:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – JasonB, Louis, Dr. belisarius
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Graphics3D[{Directive[Blue], Cuboid[]}] to start with – JasonB Jan 20 at 16:29
1  
Related (if quite the superset of this question): Mathematica Minecraft. – Yves Klett Jan 20 at 17:00
2  
Also a possible duplicate of Plotting Voxel in mathematica. – Yves Klett Jan 20 at 17:08
up vote 8 down vote accepted

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

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.