Celeritas
0.5.0-86+4a8eea4
|
Access geometry-to-material conversion. More...
#include <GeoMaterialView.hh>
Public Types | |
Type aliases | |
using | GeoMaterialData = NativeCRef< GeoMaterialParamsData > |
Public Member Functions | |
CELER_FUNCTION | GeoMaterialView (GeoMaterialData const ¶ms) |
Construct from shared data. | |
CELER_FUNCTION MaterialId | material_id (VolumeId volume) const |
Return material for the given volume. More... | |
Access geometry-to-material conversion.
|
inline |
Return material for the given volume.
Note that this will fail if the particle is outside – the volume ID will be false.