Re: TPolyLine3D

Valeri Fine (fine@bnl.gov)
Fri, 23 Jul 1999 11:29:11 -0400


> When I input the following commands into the root interpreter, nothing
> happens, or at least from all i can tell, am i doing something horribly
> wrong with TPolylLine3D?
>
> Mike
>
> // code
>
> CINT/ROOT C/C++ Interpreter version 5.13.83, Dec 2 1998
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] new TCanvas("c","c",500,500)
> (class TCanvas*)0x84c9968
> root [1] TPolyLine3D track(2);
> root [2] track.SetPoint(0,0,0,0);
> root [3] track.SetPoint(1,20,20,20);
> root [4] track.Draw();
> root [5]

Please have look at:

$ROOTSYS/tutorials/basic3D.C

example. What you missed is a definition of the range of your 3D view.

Hope this helps,
Valery