summaryrefslogtreecommitdiff
path: root/materials.py
diff options
context:
space:
mode:
authorAnthony LaTorre <telatorre@gmail.com>2011-05-15 16:28:00 -0400
committerAnthony LaTorre <telatorre@gmail.com>2011-05-15 16:28:00 -0400
commit8ea783d053e817568b3e7d04f28a6fd2583f18cf (patch)
tree9529ff81a9e8b0b986cd125d310f65bbcb9df2b0 /materials.py
parent6df4500c56bd5f8c90ed18c07eac6eae1ca7e9fb (diff)
downloadchroma-8ea783d053e817568b3e7d04f28a6fd2583f18cf.tar.gz
chroma-8ea783d053e817568b3e7d04f28a6fd2583f18cf.tar.bz2
chroma-8ea783d053e817568b3e7d04f28a6fd2583f18cf.zip
new geometry class. beginning to implement physics by defining a material class; each triangle will have a material linked to both of its sides
Diffstat (limited to 'materials.py')
-rw-r--r--materials.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/materials.py b/materials.py
new file mode 100644
index 0000000..9639a52
--- /dev/null
+++ b/materials.py
@@ -0,0 +1,12 @@
+class Material(object):
+ def __init__(self, name='none'):
+ self.name = name
+
+ self.refractive_index = None
+ self.absorption_length = None
+ self.scattering_length = None
+
+air = Material('air')
+h2o = Material('h2o')
+glass = Material('glass')
+vacuum = Material('vacuum')