Logo ROOT   6.16/01
Reference Guide
geo2stp.C
Go to the documentation of this file.
1/// \file
2/// \ingroup tutorial_geom
3/// Exports a geometry in step format. Root must be compiled using geocad option ON.
4///
5/// The macro just calls the main conversion method of the TGeoToStep interface.
6///
7/// \author Andrei Gheata
8
9void geo2stp()
10{
11 TString tutdir = gROOT->GetTutorialDir();
13 gROOT->ProcessLine(".x " + tutdir + "/geom/rootgeom.C(false)");
14 // Create the TGeoToStep interface
15 TGeoToStep geo2step(gGeoManager);
16 // Write the geometry to a step file
17 geo2step.CreateGeometry("rootgeom.stp");
18}
R__EXTERN TGeoManager * gGeoManager
Definition: TGeoManager.h:572
#define gROOT
Definition: TROOT.h:410
static void SetVerboseLevel(Int_t vl)
Return current verbosity level (static function).
This class is an interface to convert ROOT's geometry file to STEP file.
Definition: TGeoToStep.h:24
Basic string class.
Definition: TString.h:131