summaryrefslogtreecommitdiff
path: root/detectors/miniclean.py
diff options
context:
space:
mode:
authorAnthony LaTorre <tlatorre9@gmail.com>2011-08-25 21:39:54 -0400
committerAnthony LaTorre <tlatorre9@gmail.com>2011-08-25 21:39:54 -0400
commit61f09cb550c619c5c2a5300d96f8590be77682bb (patch)
tree6ce80858a3def73d3b71aa9e74615866047b0e5a /detectors/miniclean.py
parent5494e0cbed8e6294660249d1b4c20c03e22ebdd8 (diff)
downloadchroma-61f09cb550c619c5c2a5300d96f8590be77682bb.tar.gz
chroma-61f09cb550c619c5c2a5300d96f8590be77682bb.tar.bz2
chroma-61f09cb550c619c5c2a5300d96f8590be77682bb.zip
in miniclean geometry, make outer sphere transparent and change polygon face color.
Diffstat (limited to 'detectors/miniclean.py')
-rw-r--r--detectors/miniclean.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/detectors/miniclean.py b/detectors/miniclean.py
index b0d4955..92dd019 100644
--- a/detectors/miniclean.py
+++ b/detectors/miniclean.py
@@ -42,7 +42,7 @@ def build_miniclean(real_av=False):
geo = Geometry()
simple_iv = sphere(0.818)
- geo.add_solid(Solid(simple_iv, liquid_argon, vacuum, color=0x33FF0000))
+ geo.add_solid(Solid(simple_iv, liquid_argon, vacuum, color=0xffFF0000))
polygons = read_polygons(os.path.join(dir, 'miniclean_polygons.txt'))
@@ -59,7 +59,7 @@ def build_miniclean(real_av=False):
triangles = mesh.assemble(group=True)
triangle_centroids = triangles.mean(axis=1)
face = triangle_centroids[:,2] < 0.1
- colors[face] = 0x1100FF00
+ colors[face] = 0xffffff
polygon_types[polygon_id] = (mesh, colors)