3xd on windows

Hello!

I am running root 4.03/02 on windows. This is probably the cause of my current problem. I wish to draw a cylinder using this piece of code:

void TPenelopeTool::Cylinder()
{
gROOT->Reset();
c1 = new TCanvas(“c1”,“Geometry Shapes”,200,10,700,500);

//Define some volumes
tube = new TTUBE(“TUBE”,“TUBE”,“void”,150,200, 50);
tube2 = new TTUBE(“TUBE2”,“TUBE2”,“void”,150,200, 50);

//Set Shape attributes
tube->SetLineColor(6);
tube2->SetLineColor(7);

// Build the geometry hierarchy
node1 = new TNode(“NODE1”,“NODE1”,“TUBE”);
node1->cd();
node2 = new TNode(“NODE2”,“NODE2”,“TUBE2”,0,0,100);

node1->cd();
node1->Draw();
c1->Update();

c1->x3d();
}

On my windows computer I only get a white backround and not as nice a figure as I do on a linux machine. I get the error message:
“The procedure entry point point_ZN16TVirtualViewer3D11ShowMembersER16TMemberInspectorPc could not be located in the dynamic link library libCore.dll” and when I click OK on that root writes:
“Load Error: Failed to load Dynamic link library C:\root\bin\libX3d.dll
Error in TCanvas::x3d: cannot load 3D viewer with option x3d”

Do an yone get anything out of this??? I am afraid that I don’t…
I have set the path c:\root\bin and the file libX3d.dll is indeed there. Has this to do with root or with cygwin? Is there a way to fix it?

with hope for help,
Karin


Hi karin,

Replace the line
c1->x3d();
by
c1->x3d(“ogl”);

This will use the openGL viewer (on Linux or Windows)

Rene

Thank yo, that looks much better :slight_smile: