31 Double_t scale[3] = { 0.5, 0.5, 0.5 };
38 ts2->SetName(
"SmallBlue");
39 ts2->GenerateTriangleNormals();
43 Double_t scale[3] = { 0.8, 0.8, 1.2 };
45 ts2->SetTransMatrix(
m);
50 ts3->SetName(
"Spectrum");
51 ts3->GenerateTriangleNormals();
52 ts3->GenerateZNormalColors(50, -50, 50,
kTRUE,
kTRUE);
56 Double_t scale[3] = { 1.3, 1.0, 1.6 };
58 ts3->SetTransMatrix(
m);
R__EXTERN TEveManager * gEve
virtual void SetMainColor(Color_t color)
Set main color of the element.
virtual void SetTransMatrix(Double_t *carr)
Set transformation matrix from column-major array.
void AddElement(TEveElement *element, TEveElement *parent=nullptr)
Add an element.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Made from a list of vertices and a list of triangles (triplets of vertex indices).
void GenerateRandomColors()
Assign random colors to all triangles.
static TEveTriangleSet * ReadTrivialFile(const char *file)
Read a simple ascii input file describing vertices and triangles.
void GenerateTriangleNormals()
Generate triangle normals via cross product of triangle edges.
Matrix class used for computing global transformations Should NOT be used for node definition.
virtual void SetName(const char *name)
Set the name of the TNamed.