summaryrefslogtreecommitdiff
path: root/materials.py
blob: 4a8058f016f8be8ed7a6943273f47386b4392f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Material(object):
    """Material optical properties."""
    def __init__(self, name='none'):
        self.name = name

        self.wavelengths = None
        self.refractive_index = None
        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')
vacuum = Material('vacuum')