Rene Brun
Tioukov Valeri wrote:
>
> Hi rooters,
>
> The macro below crash root when I attempt to use "view with X3D" with
> messages:
>
> root [0] .x pm.C
> root [1] Total size of x3d primitives:
> gSize3D.numPoints=12
> gSize3D.numSegs =6
> gSize3D.numPolys =0
>
> *** Break *** segmentation violation
>
> If the number of points >=3 - X3D works. OpenGL works with any number of
> points and I do not see special reasons for X3D to crash once view is
> defined.
>
> Regards
> Valeri
>
> pm.C
> {
> gROOT->Reset();
>
> sky = new TCanvas( "sky", "Test", 300, 10, 700, 500 );
> sky->SetFillColor(48);
>
> TView *v1 = new TView(1);
> v1->SetRange(0,0,0,5,5,5);
>
> int npoint=2;
> TPolyMarker3D *a = new TPolyMarker3D(npoint);
>
> a->SetPoint( 0, 1, 1, 1 );
> a->SetPoint( 1, 2, 3, 4 );
> // a->SetPoint( 2, 3, 3, 3 );
> a->SetMarkerColor(4);
> a->SetMarkerSize(10);
> a->SetMarkerStyle(3);
>
> a->Draw();
> sky->Update();
> }