Celeritas is a new Monte Carlo transport code designed to accelerate scientific discovery in high energy physics by improving detector simulation throughput and energy efficiency using GPUs.
This adds support for degenerate (coincident or collinear) points in a GenTrap allowing for tetrahedra, or pentahedra (the top face being a line). There's no reason to limit the number of points on the top or bottom face; they can each be arbitrary convex polygons. (We should for example be able to make a twisted hexagonal prism.) Thus I suggest renaming this class to GenPrism. It's more like an extruded and warped polygon... but I think that encapsulates the typical use cases.
This adds support for degenerate (coincident or collinear) points in a GenTrap allowing for tetrahedra, or pentahedra (the top face being a line). There's no reason to limit the number of points on the top or bottom face; they can each be arbitrary convex polygons. (We should for example be able to make a twisted hexagonal prism.) Thus I suggest renaming this class to
GenPrism
. It's more like an extruded and warped polygon... but I think that encapsulates the typical use cases.