I think this comment should be expanded to explain that only points with an abrupt change of slope are included, especially since this is a change in semantics.  Right now the only place that says it is the comment on `segmentVertices'`, but you have to know that's how `trailVertices` is implemented to look there.