refactor parse_stl_lines using index as line_number.