fm_split_lines function

Split lines at triangle edges