[Paraview] Connecting points with line

Andy Bauer andy.bauer at kitware.com
Tue Mar 18 14:21:22 EDT 2014


If you use the Programmable Filter you can connect the points with the
following script:
pdi = self.GetPolyDataInput()
pdo =  self.GetPolyDataOutput()
numPoints = pdi.GetNumberOfPoints()
pdo.Allocate()
for i in range(0, numPoints-1):
    points = [i, i+1]
    # VTK_LINE is 3
    pdo.InsertNextCell(3, 2, points)



On Tue, Mar 18, 2014 at 2:10 PM, Patrik Blahuta <patrik.blahuta at gmail.com>wrote:

> Hello,
>
> I am new using the paraview software. I would like to ask if you can help me with connecting points with line. I opened my .csv file and made table to points. That just shown me points in 3D view. Can you give me please tutor how to connect them?
>
>
> Thanks
>
>
> *Kind regards,*
>
>
>
> *Patrik*
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140318/37324d43/attachment.html>


More information about the ParaView mailing list