103 subfile.description = model.body[0].text |
103 subfile.description = model.body[0].text |
104 else: |
104 else: |
105 subfile.valid = False |
105 subfile.valid = False |
106 subfile.problem = 'Description not found' |
106 subfile.problem = 'Description not found' |
107 if subfile.valid: |
107 if subfile.valid: |
108 subfile.vertices = set(parse.model_vertices(model)) |
108 subfile.vertices = set(parse.model_vertices(model, file_cache = self)) |
109 subfile.flatness = {'x', 'y', 'z'} |
109 subfile.flatness = {'x', 'y', 'z'} |
110 for vertex in subfile.vertices: |
110 for vertex in subfile.vertices: |
111 # Use list(subfile.flatness) for iteration because the |
111 # Use list(subfile.flatness) for iteration because the |
112 # actual set may be modified during the loop |
112 # actual set may be modified during the loop |
113 for dimension in list(subfile.flatness): |
113 for dimension in list(subfile.flatness): |