If it helps, here is the error: Exception thrown at 0x00007FFC836463B7 (vtkRenderingOpenGL2-8.2.dll) in grantCylinderViewer.exe: 0xC0000005: Access violation writing location 0x0000020A5EAF1000.
More information:
I am storing each cylinder in a vtkCellArray (for the endpoints and the connections). I thin convert to a vtkPolyData by setting the points and connections and the point data of radii and color. Because of internal errors I could not previously debug, each cylinder has unique endpoints, so the points are duplicated as many times as need be. This was then piped into a vtkTubeFilter, then piped to a vtkPolyDataMapper and finally to a vtkActor before sending to the renderer and renderwindow.