Working with curves, segments, and vertices