primitive_segments function

Guide primitives: segments