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);
virtual void SetName(const char *name)
Set the name of the TNamed.
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...
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
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
virtual void SetMainColor(Color_t color)
Set main color of the element.
Made from a list of vertices and a list of triangles (triplets of vertex indices).
static TEveTriangleSet * ReadTrivialFile(const char *file)
Read a simple ascii input file describing vertices and triangles.
void GenerateRandomColors()
Assign random colors to all triangles.
virtual void SetTransMatrix(Double_t *carr)
Set transformation matrix from column-major array.