Refactored CSGCell to use Region

This commit is contained in:
myerspat 2022-09-25 22:05:22 -04:00
parent 9127ff4f5e
commit 06312b0535
5 changed files with 523 additions and 482 deletions

View file

@ -425,7 +425,7 @@ BoundaryInfo distance_to_boundary(Particle& p)
// positive half-space were given in the region specification. Thus, we
// have to explicitly check which half-space the particle would be
// traveling into if the surface is crossed
if (c.simple_) {
if (c.is_simple()) {
info.surface_index = level_surf_cross;
} else {
Position r_hit = r + d_surf * u;