|
Celeritas 0.7.0-dev.170+develop.df22d2a88
|
Create an ORANGE geometry model from an in-memory Geant4 model. More...
#include <Converter.hh>
Classes | |
| struct | result_type |
Public Types | |
Type aliases | |
| using | arg_type = GeantGeoParams const & |
Public Member Functions | |
| Converter (Options &&) | |
| Construct with options. | |
| Converter () | |
| Construct with default options. | |
| result_type | operator() (GeantGeoParams const &, VolumeParams const &) |
| Convert the world. | |
Create an ORANGE geometry model from an in-memory Geant4 model.
Return a complete geometry input, including a mapping of internal ORANGE volume IDs to structural volume IDs.
The default Geant4 "tolerance" (often used as surface "thickness") is 1e-9 mm, and the relative tolerance when specifying a length scale is 1e-11 (so the default macro length scale is expected to be 100 mm = 10 cm). That relative tolerance is much too small for any quadric operations or angular rotations to be differentiated, so for now we'll stick with the ORANGE default tolerance of 1e-8 relative, and we assume a 1mm length scale.