Offset direction fix

better handling of spiky vertices
Merge pull request #2 from Dan-Piker/master

Offset direction fix