title: Drawing sequence of points with drawContours
body: <p><strong>I want to draw custom sequence of Points with OpenCV <code>drawContours</code> function.</strong></p>
  
  <p>My code:</p>
  
  <pre><code>std::vector&lt;std::vector&lt;cv::Point&gt; &gt; contours;
  std::vector&lt;cv::Point&gt; contour1;
  contour1.push_back(cv::Point(100,100));
  contour1.push_back(cv::Point(500,500));
  contour1.push_back(cv::Point(500,100));
  contours.push_back(contour1);
  cv::drawContours(testDrawingImage,contours,-1,cv::Scalar(0,0,255),5);
  cv::imshow("test",testDrawingImage);
  </code></pre>
  
  <p><strong>Why in this case triangle is drawn instead of L-shape?</strong></p>
  
  <p>Of course I know that I could do this with line. But maybe someone figured out how it should be passed to <code>drawContours</code> function.</p>