summaryrefslogtreecommitdiff
path: root/color
diff options
context:
space:
mode:
authorAnthony LaTorre <tlatorre9@gmail.com>2011-06-19 18:29:27 -0400
committerAnthony LaTorre <tlatorre9@gmail.com>2011-06-19 18:29:27 -0400
commita149f96a766c4d8d63919535cc468c539036165e (patch)
treefa6eece7b811e098e58fc4aa53d97a8c3dc1885e /color
parentad56515169bab5f069344e960d9582412c3672f4 (diff)
downloadchroma-a149f96a766c4d8d63919535cc468c539036165e.tar.gz
chroma-a149f96a766c4d8d63919535cc468c539036165e.tar.bz2
chroma-a149f96a766c4d8d63919535cc468c539036165e.zip
reverse the face orientation on all triangles in the stl files exported from sketchup.
Diffstat (limited to 'color')
-rw-r--r--color/__init__.py1
-rw-r--r--color/chromaticity.py5
2 files changed, 5 insertions, 1 deletions
diff --git a/color/__init__.py b/color/__init__.py
new file mode 100644
index 0000000..c5fda6a
--- /dev/null
+++ b/color/__init__.py
@@ -0,0 +1 @@
+from chromaticity import map_wavelength
diff --git a/color/chromaticity.py b/color/chromaticity.py
index 6229b51..fbd812a 100644
--- a/color/chromaticity.py
+++ b/color/chromaticity.py
@@ -1,6 +1,9 @@
import numpy as np
+import os
-f = open('sbrgb10w.csv')
+dir = os.path.split(os.path.realpath(__file__))[0]
+
+f = open(dir + '/sbrgb10w.csv')
color_map = []
for line in f: