split_line (method)

split_line(self, Z1, Z2, is_top=True, is_join=False, label_join='')[source]

Cut the Segment according to a line defined by two complex

Parameters
  • self (Segment) – An Segment object

  • Z1 (complex) – First point of the cutting Line

  • Z2 (complex) – Second point of the cutting Line

  • is_top (bool) – True to keep the part above the cutting line. “Above” is in the coordinate system with Z1 in 0 and Z2 on the X>0 axis

  • is_join (bool) – True to join the split_list with Segment if there is more that one remaining parts

  • label_join (str) – Label of the join line

Returns

split_list – The selected part of the Segment (0 or 1 segment depending on cutting point)

Return type

list(Segment)