From a149f96a766c4d8d63919535cc468c539036165e Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Sun, 19 Jun 2011 18:29:27 -0400 Subject: reverse the face orientation on all triangles in the stl files exported from sketchup. --- color/__init__.py | 1 + color/chromaticity.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 color/__init__.py (limited to 'color') 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: -- cgit