More convenient way of providing points and line segments