summaryrefslogtreecommitdiff
path: root/materials.py
diff options
context:
space:
mode:
authorAnthony LaTorre <telatorre@gmail.com>2011-05-17 16:58:36 -0400
committerAnthony LaTorre <telatorre@gmail.com>2011-05-17 16:58:36 -0400
commit909309302c83423994e9c1dd36a3309890a67b90 (patch)
treeade31f97ba43172820efd7bb80d5dd70bffa87c5 /materials.py
parent8df5c2109151613d6ed1c124095c8e6e0f98f3af (diff)
downloadchroma-909309302c83423994e9c1dd36a3309890a67b90.tar.gz
chroma-909309302c83423994e9c1dd36a3309890a67b90.tar.bz2
chroma-909309302c83423994e9c1dd36a3309890a67b90.zip
added documentation
Diffstat (limited to 'materials.py')
-rw-r--r--materials.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/materials.py b/materials.py
index 4245212..4a8058f 100644
--- a/materials.py
+++ b/materials.py
@@ -1,4 +1,5 @@
class Material(object):
+ """Material optical properties."""
def __init__(self, name='none'):
self.name = name
@@ -7,6 +8,13 @@ class Material(object):
self.absorption_length = None
self.scattering_length = None
+class Surface(object):
+ """Surface optical properties."""
+ def __init__(self, name='none'):
+ self.name = name
+
+ self.wavelength = None
+
air = Material('air')
h2o = Material('h2o')
glass = Material('glass')