[Paraview] Connecting points with line

Andy Bauer andy.bauer at kitware.com
Tue Mar 18 15:07:22 EDT 2014


Hi Patrik,

You need to specify what columns in your table from your csv file
correspond to the point coordinates for your points. If you look at the
information tab you should be able to see how many points have been created
by the Table to Points filter.

Regards,
Andy


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

> After I put this text into script I ll get:
>
> ERROR: In
> C:\DBD\pvs-x64\paraview\src\paraview\VTK\Filters\General\vtkTableToPolyData.cxx,
> line 111
>
> vtkTableToPolyData (000000000A9D63B0): Failed to locate the columns to use
> for the point coordinates
>
>
>
> ERROR: In
> C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkExecutive.cxx,
> line 754
>
> vtkPVCompositeDataPipeline (000000000AA22D50): Algorithm
> vtkTableToPolyData(000000000A9D63B0) returned failure for request:
> vtkInformation (0000000009DE4EC0)
>
> Debug: Off
>
> Modified Time: 132193
>
> Reference Count: 1
>
> Registered Events: (none)
>
> Request: REQUEST_DATA
>
> FORWARD_DIRECTION: 0
>
> FROM_OUTPUT_PORT: 0
>
> ALGORITHM_AFTER_FORWARD: 1
>
>
>
>
>
> ERROR: In
> C:\DBD\pvs-x64\paraview\src\paraview\VTK\Filters\General\vtkTableToPolyData.cxx,
> line 111
>
> vtkTableToPolyData (000000000A9D79B0): Failed to locate the columns to use
> for the point coordinates
>
>
>
> ERROR: In
> C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkExecutive.cxx,
> line 754
>
> vtkPVCompositeDataPipeline (000000000AA21850): Algorithm
> vtkTableToPolyData(000000000A9D79B0) returned failure for request:
> vtkInformation (000000000A181420)
>
> Debug: Off
>
> Modified Time: 137691
>
> Reference Count: 1
>
> Registered Events: (none)
>
> Request: REQUEST_DATA
>
> FORWARD_DIRECTION: 0
>
> FROM_OUTPUT_PORT: 0
>
> ALGORITHM_AFTER_FORWARD: 1
>
>
>
>
>
> ERROR: In
> C:\DBD\pvs-x64\paraview\src\paraview\VTK\Filters\Core\vtkDelaunay2D.cxx,
> line 816
>
> vtkDelaunay2D (0000000009D3A940): ERROR: Edge [239 5] is non-manifold!!!
>
>
>
> ERROR: In
> C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkExecutive.cxx,
> line 754
>
> vtkPVCompositeDataPipeline (000000000AA246B0): Algorithm
> vtkDelaunay2D(0000000009D3A940) returned failure for request:
> vtkInformation (000000000AB1CC20)
>
> Debug: Off
>
> Modified Time: 163117
>
> Reference Count: 1
>
> Registered Events: (none)
>
> Request: REQUEST_DATA
>
> FORWARD_DIRECTION: 0
>
> FROM_OUTPUT_PORT: 0
>
> ALGORITHM_AFTER_FORWARD: 1
>
>
>
>
>
> Traceback (most recent call last):
>
> File "<string>", line 21, in <module>
>
> File "<string>", line 9, in RequestData
>
> TypeError: InsertNextCell() takes exactly 2 arguments (3 given)
>
> Traceback (most recent call last):
>
> File "<string>", line 21, in <module>
>
> File "<string>", line 9, in RequestData
>
> TypeError: InsertNextCell() takes exactly 2 arguments (3 given)
>
> Traceback (most recent call last):
>
> File "<string>", line 21, in <module>
>
> File "<string>", line 9, in RequestData
>
> TypeError: InsertNextCell() takes exactly 2 arguments (3 given)
>
> Traceback (most recent call last):
>
> File "<string>", line 21, in <module>
>
> File "<string>", line 9, in RequestData
>
> TypeError: InsertNextCell() takes exactly 2 arguments (3 given)
>
> Traceback (most recent call last):
>
> File "<string>", line 21, in <module>
>
> File "<string>", line 9, in RequestData
>
> TypeError: InsertNextCell() takes exactly 2 arguments (3 given)
>
> Traceback (most recent call last):
>
> File "<string>", line 21, in <module>
>
> File "<string>", line 9, in RequestData
>
> TypeError: InsertNextCell() takes exactly 2 arguments (3 given)
>
> ERROR: In
> C:\DBD\pvs-x64\paraview\src\paraview\VTK\Filters\Core\vtkDelaunay2D.cxx,
> line 816
>
> vtkDelaunay2D (00000000103D21F0): ERROR: Edge [239 5] is non-manifold!!!
>
>
>
> ERROR: In
> C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkExecutive.cxx,
> line 754
>
> vtkPVCompositeDataPipeline (0000000011DD1500): Algorithm
> vtkDelaunay2D(00000000103D21F0) returned failure for request:
> vtkInformation (0000000011F7EDC0)
>
> Debug: Off
>
> Modified Time: 697676
>
> Reference Count: 1
>
> Registered Events: (none)
>
> Request: REQUEST_DATA
>
> FORWARD_DIRECTION: 0
>
> FROM_OUTPUT_PORT: 0
>
> ALGORITHM_AFTER_FORWARD: 1
>
>
>
>
>
> Traceback (most recent call last):
>
> File "<string>", line 21, in <module>
>
> File "<string>", line 9, in RequestData
>
> TypeError: InsertNextCell() takes exactly 2 arguments (3 given)
>
> Traceback (most recent call last):
>
> File "<string>", line 21, in <module>
>
> File "<string>", line 9, in RequestData
>
> TypeError: InsertNextCell() takes exactly 2 arguments (3 given)
>
> Traceback (most recent call last):
>
> File "<string>", line 21, in <module>
>
> File "<string>", line 9, in RequestData
>
> TypeError: InsertNextCell() takes exactly 2 arguments (3 given)
>
> Traceback (most recent call last):
>
> File "<string>", line 21, in <module>
>
> File "<string>", line 9, in RequestData
>
> TypeError: InsertNextCell() takes exactly 2 arguments (3 given)
>
> *S pozdravom / Kind regards,*
>
>
>
> *Patrik Blahuta*
>
>
> 2014-03-18 19:21 GMT+01:00 Andy Bauer <andy.bauer at kitware.com>:
>
>> 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/7f4aabfb/attachment-0001.html>


More information about the ParaView mailing list