TPointSet3D howto?

Hi,

I would like to plot a set of points in 3D (representing an N-body problem). I know I can do it with TPolymarker3D, but I have 2 questions

  • Is it possible to simply (i.e. already foreseen) to plot a 3D axis set ?
  • can I use a TPointSet3D to paint with GL ? What would be the advantages and how do I do it ? I tried changing the “tornado.C” macro but it doesn’t change anything. Should I generate first a “GL view” and how ?

Thanks very much and sorry if this is already written somewhere.

Cheers

Damir

{
   gStyle->SetOptStat(0);

   TH3F *frame3d = new TH3F("frame3d","frame3d",10,-1,1,10,-1,1,10,-1,1);
   frame3d->Draw();

   TPolyMarker3D *pm3d1 = new TPolyMarker3D(3);
   pm3d1->SetPoint(0,1,0,0);
   pm3d1->SetPoint(1,0,1,0);
   pm3d1->SetPoint(2,0,0,1);

   pm3d1->SetMarkerSize(2);
   pm3d1->SetMarkerColor(kBlue);
   pm3d1->SetMarkerStyle(20);

   pm3d1->Draw();

   TPolyMarker3D *pm3d2 = new TPolyMarker3D(3);
   pm3d2->SetPoint(0,-1,0,0);
   pm3d2->SetPoint(1,0,-1,0);
   pm3d2->SetPoint(2,0,0,-1);

   pm3d2->SetMarkerSize(2);
   pm3d2->SetMarkerColor(kRed);
   pm3d2->SetMarkerStyle(20);

   pm3d2->Draw();
}