code cleaning straight-line alpha-shape