Hello,
I need to plot an ellipsoid of revolution. I am using TGLParametricEquation like this:
[code]// Spheroid
// Derived from tutorials/gl/glparametric.C, Author: Timur Pocheptsov
void spheroid () {
gStyle->SetCanvasPreferGL(kTRUE);
TCanvas *c1 = new TCanvas(“canvas”,“Indicatrix”, 100, 10,
1024, 1024);
c1->SetFillColor(42);
gStyle->SetFrameFillColor(42);
TGLParametricEquation *p1 = new TGLParametricEquation(“Spheroid”,
“cos(u)*cos(v)”,
“cos(u)sin(v)",
"2sin(u)”,
-TMath::Pi()/2., TMath::Pi()/2, -TMath::Pi(), TMath::Pi()
);
p1->Draw();
}[/code]
I expect to see an ellipsoid with unique axis z. Instead I always get a sphere.
I must be missing something.
Thanks for any help,
Roger