aboutsummaryrefslogtreecommitdiffstats
path: root/model_c2rs.py
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-05-06 16:34:12 -0400
committerbnewbold <bnewbold@robocracy.org>2016-05-06 16:34:12 -0400
commit6ec17f90b2c3a5a113dc839c32e9200a17a8aa21 (patch)
treeb50855a488ffb09eb38e6bcaa7c712adc11ef4e3 /model_c2rs.py
parentf2649a1733ba9ace0e4cb2f8dd95371cad370456 (diff)
downloadexuberant-hacks-6ec17f90b2c3a5a113dc839c32e9200a17a8aa21.tar.gz
exuberant-hacks-6ec17f90b2c3a5a113dc839c32e9200a17a8aa21.zip
fixed up model_c2rs so hide works
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("""