Generally, a reader class is provided for each format. The reader is created, then told to
load a file, and it creates a Registry object (see Registry) containing
the model. The registry is the final object from a reader, and its top-most volume can be
used for visualisation or other operations.
In directory pyg4ometry/test/gdmlG4examples/ChargeExchangeMC/
Geant4 example GDML from ChargeExchangeMC example.¶
In directory pyg4ometry/test/flukaCompoundExamples
Note FLUKA geometry can be loaded but cannot be visualised directly without
conversion to a Geant4 model. This is not necessary for loading, but shown here.
STL files are typically used for a single watertight solid mesh. This mesh is
converted to a TesselatedSolid and then a logical volume which can be placed
in a geometry. In directory pyg4ometry/test/stl.