parse.py

changeset 6
6da1e81c5652
parent 4
8eb83f200486
child 8
303c51137cb2
equal deleted inserted replaced
5:e340e35d6e4c 6:6da1e81c5652
46 except ValueError: 46 except ValueError:
47 raise BadLdrawLine('bad numeric values') 47 raise BadLdrawLine('bad numeric values')
48 return linetypes.SubfileReference( 48 return linetypes.SubfileReference(
49 colour = colour, 49 colour = colour,
50 anchor = Vertex(*vertex_values), 50 anchor = Vertex(*vertex_values),
51 matrix = TransformationMatrix(matrix_values), 51 matrix = Matrix3x3(matrix_values),
52 subfile_path = groups[indices['subfile_path']] 52 subfile_path = groups[indices['subfile_path']]
53 ) 53 )
54 54
55 def generic_parse_polygon(line, *, type_code, vertex_count): 55 def generic_parse_polygon(line, *, type_code, vertex_count):
56 pattern = r'^' \ 56 pattern = r'^' \

mercurial