Ah, then you can skip the filter and directly make a vtkUnstructuredGrid containing only points and VTK_VERTEX cell that index them.
See section 3 of the users guide for details. Somewhere in your adaptor you will have something like the following: output = vtk.vtkUnstructuredGrid() pts = output.GetPoints() cells = output.GetCells() for i in particles.len(): pids = [i] pts.InsertNextPoint(next_coordinate) cells.InsertNextCell(vtk.VTK_VERTEX, 1, pids) When you get that working you will want to replace the inserts with direct memory references to the possible. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, Jan 6, 2017 at 12:25 PM, <valen...@email.cz> wrote: > Hello, > > thank you, but I mean how to pass these point data computed by a > simulation code to ParaView in order to visualize them insitu. The Catalyst > examples (https://gitlab.kitware.com/paraview/paraview/tree/master/ > Examples/Catalyst) usually use some type of a grid and data are then > attached onto it. > > Cheers, > > Petr Valenta > > ---------- Původní zpráva ---------- > Od: David E DeMarle <dave.dema...@kitware.com> > Komu: valen...@email.cz > Datum: 6. 1. 2017 18:00:34 > Předmět: Re: [Paraview] ParaView Catalyst: export point data > > Glyph Filter, type=2D subtype=points will create 1D cells (VTK_POINTS > type) for every point (those that are attached to cells and those that are > not used by any cell). To get only those points that are not used by cells, > you may need the programmable filter. > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 <(518)%20881-4909> > > On Fri, Jan 6, 2017 at 11:49 AM, <valen...@email.cz> wrote: > > Hello, > > is there any way how to export data using Catalyst which are not attached > to any grid (like particles that are characterized only by the vector of > their location)? Thank you! > > Petr Valenta > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview > >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview