problem with Lines

I have this egg file:

lines {
0 {
-6 36 -6
}
1 {
0 42 0
}
2 {
6 48 6
}
}
{
{ 0 1 { lines } }
}
{
{ 0 2 { lines } }
}

I created a very simple program just to load this file:

import direct.directbase.DirectStart
from pandac.PandaModules import *
from direct.gui.DirectGui import *

datanode = loader.loadModel (“temp.egg”)
datanode.reparentTo (render)

#Run the prototype
run ()

I am getting this error:

Assertion failed: i >= 0 && i < (int)_components.size() at line 93 of c:\temp\mkpr\panda3d-1.3.2\panda\src\egg\eggCompositePrimitive.I

I tried the same thing with a polygon with no problem.

What am I missing?

Thanks!

Geri

Oops, looks like we introduced a bug in the egg reader with regards to the primitive recently. I’ve just checked in a fix, which will make it into a future version of Panda. In the meantime, you’ll have to create lines interactively via the LineSegs object in Python, instead of loading them from an egg file (or, you can try installing an older version of Panda).

Sorry about that!

David

Thanks for the quick reply.

I’ll look into the Python LineSegs for now.

Geri