1
$\begingroup$

I need to plot o large number of triangles. It happens that some of them do not show up. Why? (version 10.3.1)

If I exec this, I got no data plotted:

ListPlot3D[{{10, 10, 0}, {30, 30, 0}, {10, 10, 500}}]

If I exec this, the data is plotted!

ListPlot3D[{{10, 10, 0}, {30, 30, 0}, {10.001, 10, 500}}]

I'm using Mathematica for 15 years now and I'm really tired of those kind of bugs.

$\endgroup$

closed as off-topic by MarcoB, m_goldberg, J. M. is away Aug 24 '17 at 17:49

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." – MarcoB, m_goldberg, J. M. is away
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 7
    $\begingroup$ This is the expected behavior: You're basically specifying two z values for {10,10}. If you really want to plot triangles, you should use Graphics3D with Polygon $\endgroup$ – Lukas Lang Aug 24 '17 at 12:18
  • 6
    $\begingroup$ Properties and relations / #4 -> "When using multiple z values for each x, y value, the duplicates are discarded by ListPlot3D" $\endgroup$ – Kuba Aug 24 '17 at 12:25
2
$\begingroup$
Graphics3D[
 Polygon[
  {
   {10, 10, 0},
   {30, 30, 0},
   {10, 10, 500}
   }
  ]
 , BoxRatios -> {1, 1, 1}
 ]

Mathematica graphics


Code and plots done in Mathemathica 11.1.1 on Win7

$\endgroup$

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