vtkOpenGLStickMapper usage

I am trying to render lots of cylinders and would like to use vtkOpenGLStickMapper instead of glyphs to see if it is more performant. However I can’t figure out how to use vtkOpenGLStickMapper. I am just giving it polydata with a bunch of points but every time I go to render, I get a segfault. I assume it needs specific data fields, or named arrays?

Do I have to use the vtkOpenGLMoleculeMapper and a vtkMolecule instead?

Something is currently wrong on the JS rendering side of things. But hopefully that JS code could provide you the basic gist that you may need for your usage of VTK.