Macro allowing to vizualize tessellations from Wavefront's .obj format.
int randomColor()
{
return ci;
}
void visualizeWavefrontObj(const char *dot_obj_file = "", bool check = false)
{
sfile =
gROOT->GetTutorialsDir();
sfile += "/visualisation/geom/teddy.obj";
}
name.ReplaceAll(
".obj",
"");
gROOT->GetListOfCanvases()->Delete();
if (!tsl)
return;
tsl->ResizeCenter(5.);
}
externTGeoManager * gGeoManager
static Int_t GetFreeColorIndex()
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
Int_t GetTime() const
Return time in form of 123623 (i.e. 12:36:23).
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.
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.
const char * Data() const
- Author
- Andrei Gheata
Definition in file visualizeWavefrontObj.C.