Minimum distance between successive points

Minimum distance between successive points. 
1. Introduce a dist parameter. 
1.2. Default to -1.