pyne/pyne — pull request #340 by elliottbiondo (2014-02-24 00:52:50+00:00)
Title: DAGMC geometry discretization 

Closes #240. The function ```discretize_geom()``` has been added. This function reads in a PyNE Mesh object that superimposes a DAGMC geometry. The geometry is then ray traced to determine the volume fraction of each geometry volume within each superimposed mesh volume element. Since this is a statistical method, the standard error of each volume fraction is also calculated. Ray tracing can be done with rays starting at either randomly sampled points or points in a uniform grid.

Unlike #240, if have chosen not to tag results onto an iMesh instance. Each mesh volume element may need to store anywhere between 1 and N volume fractions, where N is the number of geometry volumes. Python dictionaries are better suited that iMesh tags for handling this variable length. In addition, in many (most?) workflows the cell volume fractions are unimportant intermediate results and the material volume fractions are what is important.

Here is some sample output that I tagged onto an iMesh instance using a separate script. The [Utah teapot](http://en.wikipedia.org/wiki/Utah_teapot):
![teapot](https://f.cloud.github.com/assets/1749283/2241922/2b36694a-9ceb-11e3-97bc-61393f54f294.png)