title: outline vectorshape algorithm
body: <p>consider the red line to be given as a sequence of points</p>
  
  <p><img src="https://i.stack.imgur.com/SSSi2.jpg" alt="enter image description here"></p>
  
  <p>I'm looking for an algorithm to create the outlines of the thick black shape (also as a sequence of points) such that they are ordered cleanly. And the outline should also respect a minimum distance to itself.</p>
  
  <p>What algorithm can I use to achieve this?</p>