aboutsummaryrefslogtreecommitdiffstats
path: root/model_c2rs.py
diff options
context:
space:
mode:
Diffstat (limited to 'model_c2rs.py')
-rwxr-xr-xmodel_c2rs.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/model_c2rs.py b/model_c2rs.py
index ee2e0df..bd0ba82 100755
--- a/model_c2rs.py
+++ b/model_c2rs.py
@@ -17,10 +17,11 @@ def main():
if line.count(",") != 6:
continue
nums = line.strip().split(",")[:-1]
+ nums = [n.find(".") != -1 and n or n+".0" for n in nums]
#print(nums)
assert(len(nums) == 6)
- vertices.append(nums[:3])
- normals.append(nums[3:])
+ normals.append(nums[:3])
+ vertices.append(nums[3:])
infile.close()
outfile.write("""