X-Git-Url: https://git.sthu.org/?p=io_import_off.git;a=blobdiff_plain;f=io_import_off.py;h=6b7f9dcbdfb9fd0f2d146d1348c366551675a1e1;hp=86b825cace8b4b39aa4dd42e55164a9e5195ddea;hb=d160f23c6a69453e231f6f18e15dad65d8c0ca8a;hpb=271b7a5f58981e361a3d286f2c0b91970e6160cb diff --git a/io_import_off.py b/io_import_off.py index 86b825c..6b7f9dc 100644 --- a/io_import_off.py +++ b/io_import_off.py @@ -84,7 +84,7 @@ def unpack_faces(faces): # Rotate triangle, such that last index is not zero if tri[2] == 0: tri = [ tri[2], tri[0], tri[1] ] - + l.extend(tri) l.extend([0]) @@ -94,7 +94,7 @@ def unpack_faces(faces): def importFile(filepath, context): # List of vertices, a vertex is a 3-tuple (x,y,z) - vertices = [] + vertices = [] # List of faces, a face is a list of indices within vertices faces = [] @@ -135,7 +135,7 @@ def importFile(filepath, context): # Get all faces for n in range(numFaces): line = getNextLine(f).split() - + # Get number of vertices lenFace = int(line[0]) line = line[1:] @@ -172,7 +172,7 @@ def importFile(filepath, context): print("Error reading .off file") print(e) return False - + class IMPORT_OT_dec_off(bpy.types.Operator):