# Rotate triangle, such that last index is not zero\r
if tri[2] == 0:\r
tri = [ tri[2], tri[0], tri[1] ]\r
- \r
+\r
l.extend(tri)\r
l.extend([0])\r
\r
def importFile(filepath, context):\r
\r
# List of vertices, a vertex is a 3-tuple (x,y,z)\r
- vertices = [] \r
+ vertices = []\r
# List of faces, a face is a list of indices within vertices\r
faces = []\r
\r
# Get all faces\r
for n in range(numFaces):\r
line = getNextLine(f).split()\r
- \r
+\r
# Get number of vertices\r
lenFace = int(line[0])\r
line = line[1:]\r
print("Error reading .off file")\r
print(e)\r
return False\r
- \r
+\r
\r
\r
class IMPORT_OT_dec_off(bpy.types.Operator):\r