Demonstrates usage of TEveBox class.
{
auto gEve = REveManager::Create();
b->SetMainTransparency(0);
#define RND_BOX(x) r.Uniform(-(x), (x))
b->SetVertex(0,
x -
a + RND_BOX(
d),
y -
a + RND_BOX(
d), z -
a + RND_BOX(
d));
b->SetVertex(1,
x -
a + RND_BOX(
d),
y +
a + RND_BOX(
d), z -
a + RND_BOX(
d));
b->SetVertex(2,
x +
a + RND_BOX(
d),
y +
a + RND_BOX(
d), z -
a + RND_BOX(
d));
b->SetVertex(3,
x +
a + RND_BOX(
d),
y -
a + RND_BOX(
d), z -
a + RND_BOX(
d));
b->SetVertex(4,
x -
a + RND_BOX(
d),
y -
a + RND_BOX(
d), z +
a + RND_BOX(
d));
b->SetVertex(5,
x -
a + RND_BOX(
d),
y +
a + RND_BOX(
d), z +
a + RND_BOX(
d));
b->SetVertex(6,
x +
a + RND_BOX(
d),
y +
a + RND_BOX(
d), z +
a + RND_BOX(
d));
b->SetVertex(7,
x +
a + RND_BOX(
d),
y -
a + RND_BOX(
d), z +
a + RND_BOX(
d));
#undef RND_BOX
}
R__EXTERN TEveManager * gEve
R__EXTERN TRandom * gRandom
virtual void AddElement(TEveElement *el)
Add el to the list of children.
TEveScene * GetEventScene() const
This is the base class for the ROOT Random number generators.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
- Author
- Matevz Tadel
Definition in file box.C.