|
G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
|
Firewall bridge between the DD4hep plugin TU and G4OCCT/OCCT. More...
#include <map>#include <string>Go to the source code of this file.
Functions | |
| int | G4OCCT_ImportSTEPAssembly (const std::string &path, const std::map< std::string, G4Material * > &materials) |
Firewall bridge between the DD4hep plugin TU and G4OCCT/OCCT.
See G4OCCT_STEPSolid_impl.hh for a full explanation of the Printf return-type collision that makes this firewall necessary.
This header must not pull in either DD4hep/ROOT or G4OCCT/OCCT.
Definition in file G4OCCT_STEPAssembly_impl.hh.
| int G4OCCT_ImportSTEPAssembly | ( | const std::string & | path, |
| const std::map< std::string, G4Material * > & | materials | ||
| ) |
Import a STEP assembly, build the G4OCCTAssemblyVolume, and return the number of constituent solids found.
| path | Path to the STEP file. |
| materials | Map of STEP material name → G4Material*. Throws std::runtime_error on failure. |
Definition at line 22 of file G4OCCT_STEPAssembly_impl.cc.
References G4OCCTMaterialMap::Add(), G4OCCTAssemblyVolume::FromSTEP(), and G4OCCTAssemblyVolume::GetLogicalVolumes().
Referenced by create_step_assembly().