title: Rearranging array of vertices into array of edges
body: <p>I have a 3x2 array where each row represents a vertex of a triangle. I would like to reshape it in order to obtain a new array where each row represents a side.</p>
  <p>I'm currently trying the following approach:</p>
  <pre><code>points = np.array([[0,0], [0,1], [1,0]])
  
  sides = np.array([
      [points[0], points[1]],
      [points[1], points[2]],
      [points[2], points[0]]
  ])
  </code></pre>
  <p>Is there any build in function to do that in a more elegant way?</p>