Hello,
Is there a class in TEve that would allow one to draw a hexagonal solid analogous to the TEveBox? Right now I draw it as a line set which does not allow me to give a fill color or treat it as a single object.
Best,
Josh
Hello,
Is there a class in TEve that would allow one to draw a hexagonal solid analogous to the TEveBox? Right now I draw it as a line set which does not allow me to give a fill color or treat it as a single object.
Best,
Josh
@matevz will be able to tell you more about this.
Meanwhile you can check: https://root.cern/doc/master/group__TEve.html
Hi,
You can use TEveGeoShape and pass in any TGeo shape.
If you need hexagonal prism, you might get away with TGeoTube and N-segments = 6. Let me try … yup, this works:
TEveManager::Create()
auto gs = new TEveGeoShape("test")
gs->SetShape(new TGeoTube(0, 1, 0.5))
gs->SetNSegments(6)
gEve->AddElement(gs)
gEve->Redraw3D(true, true)
Alternatively, you could use TEveTriangleSet and specify the triangle mesh (vertices + triangle indices). See tutorials/eve/triangleset.C
Cheers,
Matevz