void triangleset()
{
{
}
{
ts2->SetName("SmallBlue");
ts2->GenerateTriangleNormals();
ts2->SetMainColor(4);
}
{
ts3->SetName("Spectrum");
ts3->GenerateTriangleNormals();
ts3->GenerateZNormalColors(50, -50, 50,
kTRUE,
kTRUE);
ts3->SetMainColor(0);
}
}
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=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.
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.