G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
G4OCCT_STEPSolid.cc File Reference

DD4hep detector-element plugin: single solid from a STEP file. More...

#include <DD4hep/DetFactoryHelper.h>
#include <DD4hep/Printout.h>
#include "G4OCCT/TGeoOCCTSolid.hh"
#include <stdexcept>
#include <string>

Go to the source code of this file.

Functions

static Ref_t create_step_solid (Detector &description, xml_h e, SensitiveDetector)
 

Detailed Description

DD4hep detector-element plugin: single solid from a STEP file.

Compact XML usage:

<detector id="1" name="MyBeamPipe" type="G4OCCT_STEPSolid" vis="BlueVis">
<step_file path="geometry/beampipe.step"/>
<position x="0" y="0" z="0"/>
<rotation x="0" y="0" z="0"/>
<material name="Aluminium"/>
</detector>

The implementation constructs a TGeoOCCTSolid directly from STEP. This keeps DD4hep/ROOT geometry and navigation on the exact shared G4OCCT query kernel instead of a tessellated approximation.

Definition in file G4OCCT_STEPSolid.cc.

Function Documentation

◆ create_step_solid()

static Ref_t create_step_solid ( Detector &  description,
xml_h  e,
SensitiveDetector   
)
static

Definition at line 29 of file G4OCCT_STEPSolid.cc.

References TGeoOCCTSolid::FromSTEP().