29void visualizeWavefrontObj(
const char *dot_obj_file=
"",
bool check =
false)
37 sfile =
gROOT->GetTutorialsDir();
38 sfile +=
"/geom/teddy.obj";
41 gROOT->GetListOfCanvases()->Delete();
52 tsl->ResizeCenter(5.);
R__EXTERN TGeoManager * gGeoManager
R__EXTERN TRandom * gRandom
The color creation and management class.
static Int_t GetFreeColorIndex()
Static function: Returns a free color index which can be used to define a user custom color.
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)
The manager class for any TGeo geometry.
void CloseGeometry(Option_t *option="d")
Closing geometry implies checking the geometry validity, fixing shapes with negative parameters (run-...
TGeoVolume * MakeBox(const char *name, TGeoMedium *medium, Double_t dx, Double_t dy, Double_t dz)
Make in one step a volume pointing to a box shape with given medium.
void SetTopVolume(TGeoVolume *vol)
Set the top volume and corresponding node as starting point of the 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.
virtual TGeoNode * AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
Add a TGeoNode to the list of nodes.
virtual void Draw(Option_t *option="")
draw top volume according to option
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
Random number generator class based on M.
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
virtual Double_t Rndm()
Machine independent random number generator.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)