Rendering a GeomNode

I use LineSegs to draw out something in 3d and then I use LineSegs.create() to obtain a GeomNode.

How do you you get this GeomNode to render the image you drew out with LineSegs?


Like anything else, you parent it to render, e.g. with:

np = render.attachNewNode(geomNode)

or with the equivalent:

np = NodePath(geomNode)


I tried that before and nothing showed up so I guess I was doing something else wrong. Thanks