Macro allowing to vizualize tessellations from Wavefront's .obj format.
{
}
{
sfile +=
"/visualisation/geom/teddy.obj";
}
name.ReplaceAll(
".obj",
"");
gROOT->GetListOfCanvases()->Delete();
return;
printf(
"Raytracing a tessellated shape without VecGeom support will just draw a box\n");
} else {
}
return;
if (!view)
return;
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TGeoManager * gGeoManager
R__EXTERN TRandom * gRandom
The color creation and management class.
static Int_t GetFreeColorIndex()
Static function: Returns the free color index greater than the highest defined color index.
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
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 ...
static TGeoTessellated * ImportFromObjFormat(const char *objfile, bool check=false, bool verbose=false)
Reader from .obj format.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
void SetLineWidth(Width_t lwidth) override
Set the line width.
void Raytrace(Bool_t flag=kTRUE)
Draw this volume with current settings and perform raytracing in the pad.
virtual TGeoNode * AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=nullptr, Option_t *option="")
Add a TGeoNode to the list of nodes.
void Draw(Option_t *option="") override
draw top volume according to option
void SetLineColor(Color_t lcolor) override
Set the line color.
Random number generator class based on M.
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
Double_t Rndm() override
Machine independent random number generator.
static TVirtualGeoConverter * Instance(TGeoManager *geom=nullptr)
Static function returning a pointer to the current geometry converter.