Changeset View
Changeset View
Standalone View
Standalone View
io_convert_image_to_mesh_img/import_img.py
| Context not available. | |||||
| currentY = 0 | currentY = 0 | ||||
| for line in image_iter: | for line in image_iter: | ||||
| if currentY >= YOffset and currentY <= YOffset + YSize: | if YOffset <= currentY <= YOffset + YSize: | ||||
| yield line[XOffset:XOffset+XSize] | yield line[XOffset:XOffset+XSize] | ||||
| # Not much point in reading the rest of the data... | # Not much point in reading the rest of the data... | ||||
| if currentY == YOffset + YSize: | if currentY == YOffset + YSize: | ||||
| Context not available. | |||||