20 #define RND_BOX(x) r.Uniform(-(x), (x)) 21 b->
SetVertex(0,
x -
a + RND_BOX(d),
y -
a + RND_BOX(d),
z -
a + RND_BOX(d));
22 b->
SetVertex(1,
x -
a + RND_BOX(d),
y +
a + RND_BOX(d),
z -
a + RND_BOX(d));
23 b->
SetVertex(2,
x +
a + RND_BOX(d),
y +
a + RND_BOX(d),
z -
a + RND_BOX(d));
24 b->
SetVertex(3,
x +
a + RND_BOX(d),
y -
a + RND_BOX(d),
z -
a + RND_BOX(d));
25 b->
SetVertex(4,
x -
a + RND_BOX(d),
y -
a + RND_BOX(d),
z +
a + RND_BOX(d));
26 b->
SetVertex(5,
x -
a + RND_BOX(d),
y +
a + RND_BOX(d),
z +
a + RND_BOX(d));
27 b->
SetVertex(6,
x +
a + RND_BOX(d),
y +
a + RND_BOX(d),
z +
a + RND_BOX(d));
28 b->
SetVertex(7,
x +
a + RND_BOX(d),
y -
a + RND_BOX(d),
z +
a + RND_BOX(d));
void SetVertex(Int_t i, Float_t x, Float_t y, Float_t z)
Set vertex 'i'.
3D box with arbitrary vertices (cuboid).
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
This is the base class for the ROOT Random number generators.
virtual void SetMainColor(Color_t color)
Set main color.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
R__EXTERN TEveManager * gEve
R__EXTERN TRandom * gRandom
virtual void SetMainTransparency(Char_t t)
Set main-transparency.
you should not use this method at all Int_t Int_t z
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b