summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-10-08 15:47:19 -0400
committerStan Seibert <stan@mtrr.org>2011-10-08 15:47:19 -0400
commit873932b758dab87389fc2acbfba1b47cae0dc9e1 (patch)
tree7f89525fd5efc710b0f47b5b8b1fc953093e503c
parent70135ca54027f90dd30fa53827646793acc561d0 (diff)
downloadchroma-873932b758dab87389fc2acbfba1b47cae0dc9e1.tar.gz
chroma-873932b758dab87389fc2acbfba1b47cae0dc9e1.tar.bz2
chroma-873932b758dab87389fc2acbfba1b47cae0dc9e1.zip
Photon history constants in Python.
-rw-r--r--chroma/event.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/chroma/event.py b/chroma/event.py
index a2b99cc..5f7c4c7 100644
--- a/chroma/event.py
+++ b/chroma/event.py
@@ -1,5 +1,15 @@
import numpy as np
+# Photon history bits (see photon.h for source)
+NO_HIT = 0x1 << 0,
+BULK_ABSORB = 0x1 << 1,
+SURFACE_DETECT = 0x1 << 2,
+SURFACE_ABSORB = 0x1 << 3,
+RAYLEIGH_SCATTER = 0x1 << 4,
+REFLECT_DIFFUSE = 0x1 << 5,
+REFLECT_SPECULAR = 0x1 << 6,
+NAN_ABORT = 0x1 << 31
+
class Vertex(object):
def __init__(self, particle_name, pos, dir, ke, t0=0.0, pol=None):
self.particle_name = particle_name