Cut the Segment according to a point on the segment
self (Segment) – An Segment object
Z1 (complex) – Cutting point on the line
is_begin (bool) – True to keep the part begin=>Z1, False for the part Z1=>end