
Joining Cells
Some models may contain cells that have been split for importance weighting or some other purpose. Some of this splitting can be undone with the cell joining algorithm that is invoked with Join Cells in the Cell menu. Joining cleans up a model for use elsewhere and can speed up the 2D and 3D Moritz displays if the number of cells is significantly reduced.
The joining algorithm compares all pairs of cells. A pair is merged into a single cell if they share all surfaces except 2, the 2 surfaces not in common are aligned planes (PX, PY, PZ), there is a shared plane of the same type, and the senses of the 3 planes are in the correct combination. The two cells must have the same material, density, transformation (including none), and universe. A cell is not a candidate for joining if its description contains a union (:) or complement operator (#), it is filled with something, or it carries a data value.
More than two cells may be suitable for merging. Because the algorithm operates on pairs of cells, it makes multiple passes through the model until no cells have been merged. The number of cells deleted on each pass and the total number for all passes is printed in the transcript window.
| White Rock Science http://www.whiterockscience.com/wrs.html 505 672 1105 |