geom with GeomTristrips and GeomLinestrips

Hi,
I’m trying to add a GeomLinestrips primitive to a geom which already have GeomTristrips primitive.

    def make_Tristrips(start,stop,n_vertices):
        prim = GeomTristrips(Geom.UHStatic)

        for i in range(start,stop,2):
            prim.addVertices(i,2*n_vertices+i)
        prim.addVertices(start, 2*n_vertices+start)
        
        prim.close_primitive()        
        return prim

    def make_linestrips(start,stop):
        prim = GeomLinestrips(Geom.UHStatic)

        for i in range(start,stop,2):
            prim.addVertex(i)
        prim.addVertex(start)
        
        prim.close_primitive()        
        return prim

prim_Tristrips = make_Tristrips(1,100,150)
prim_Linestrips = make_Linestrips(1,10)

geom = Geom(vdata)
geom.addPrimitive(prim_Tristrips)
geom.addPrimitive(prim_Linestrips)

The last line of code raise an error

Assertion failed: cdata->_primitive_type == PT_none || cdata->_primitive_type == primitive->get_primitive_type() at line 375 of c:\buildslave\sdk-windows-i386\build\panda\src\gobj\geom.cxx

What does it mean? How can I make mixed geom with both Tristrips and Linestrips?
Thank you in advance!!!

This is not allowed. The primitives in a particular Geom must all have the same basic primitive type (points, lines or triangles). This means that you are allowed to create a Geom containing both GeomTriangles and GeomTristrips, but you can’t make a Geom containing both GeomLines and GeomTriangles.

I suggest that you make two separate Geoms instead.