Cut the line in half (modify the object)
self (Segment) – An Segment object
is_begin (bool) – True to keep the part begin=>middle, False for the part middle=>end