[vtkusers] Generating path lines

Fraser Callaghan fraser.callaghan at sydney.edu.au
Sun Oct 5 10:08:13 EDT 2014


Hello, 

Are there any examples available for generating particle pathlines in VTK? 

I have previously been working via the paraview interface (see example below) but would like to migrate to a pure VTK alternative and am having trouble understanding the process. 

Thanks for you help,
Fraser

    vol = pvs.PVDReader(FileName=pvdFile)
    source = pvs.XMLPolyDataReader(FileName=sourceVtpFile)
 
    pvs.SetActiveSource(vol)
    
    outputPaths = pvs.ParticlePath( SeedSource=source ) 
    outputPaths.SelectInputVectors = ['POINTS', 'Velocity']
    outputPaths.TerminationTime = terminationTime

    outputPaths.UpdatePipeline()


More information about the vtkusers mailing list