1. Click "Delimit Stockpile" in the  "Stockpile Tools" dropdown menu
  2. Draw a polygon around the stockpile or use Smart Select
    1. Stay as close to the edge of the stockpile as possible, but every point should be touching the ground
  3. If the stockpile is touching another stockpile or a structure, add floor points