23 auto c =
new TCanvas(
"composite shape",
"A * B - C");
32 auto top =
gGeoManager->MakeBox(
"TOP", med, 100, 100, 100);
37 auto box1 =
new TGeoBBox(
"box1", 5., 5., 5.);
50 tr->RegisterYourself();
51 tr1->RegisterYourself();
52 tr2->RegisterYourself();
53 tr3->RegisterYourself();
72 en->GetNode()->GetVolume()->SetVisibility(
kFALSE);
74 gEve->AddGlobalElement(en);
78 en->ExpandIntoListTreesRecursively();
79 en->SaveExtract(
"csg.root",
"CSG Demo",
kFALSE);
externTGeoManager * gGeoManager
static void SetCSGExportNSeg(Int_t nseg)
Sets number of segments used for CSG export.
A wrapper over a TGeoNode, possibly displaced with a global trasformation stored in TEveElement.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
static void SetEnforceTriangles(Bool_t e)
Set state of static flag EnforceTriangles.
Composite shapes are Boolean combinations of two or more shape components.
The manager class for any TGeo geometry.
Base class describing materials.
Media are used to store properties related to tracking and which are useful only when using geometry ...
Class describing translations.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)