title: Matlab drawing tetrahedrons and triangles
body: <p>I'm implementing Crust algorithm in MATLAB and having problem to draw result figure.</p>
  <p>I have an array pointsArray (1000x3) of points in three-dimensional space.</p>
  <ol>
  <li><p>I have a matrix M (100x4). Each row is a vector containing 4 indexes of pointsArray, making a tetrahedron. Now I want to draw all these tetrahedrons in some efficient way.</p>
  <p>Currently I'm using &quot;for&quot; loop and patch(FV) method, but for few thousands tetrahedron it's killing my CPU.</p>
  </li>
  <li><p>I have a matrix N (100x3). Each row is a vector containing 3 indexes of pointsArray, making a triangle in three-dimensional space. I also want to draw these triangles.</p>
  </li>
  </ol>
  <p>Any ideas, how to draw these figures in some efficient way?</p>
  <p>Edit: problem solved. I used trisurf instead of patch.</p>