[vtk-developers] Problem with vtkAppendPolyData
FUJII Kenji
kenji.fujii at noe.co.jp
Wed Jan 12 20:19:50 EST 2011
David,
Thanks for your reply.
I corrected the code according to the content of the link.
The code is as follows.
#------------------------------------------------------------
append = vtk.vtkAppendPolyData()
append.AddInputConnection(polyData1.GetProducerPort())
append.AddInputConnection(polyData2.GetProducerPort())
append.AddInputConnection(polyData3.GetProducerPort())
append.Update()
cleanFilter = vtk.vtkCleanPolyData()
cleanFilter.SetInputConnection(append.GetOutputPort())
cleanFilter.Update()
print cleanFilter.GetOutput().GetNumberOfPoints()
#------------------------------------------------------------
But it did'nt work...The number of points that AppendPolyData has is still
zero.
For your information, I confirm that 3 PolyData could have points and
scalars accurately as well.
For example,
polyData1.GetNumberOfPoints() = non zero positive value.
----- Original Message -----
From: "David Doria" <daviddoria at gmail.com>
To: "FUJII Kenji" <kenji.fujii at noe.co.jp>
Cc: <vtk-developers at vtk.org>
Sent: Wednesday, January 12, 2011 10:16 PM
Subject: Re: [vtk-developers] Problem with vtkAppendPolyData
> 2011/1/12 FUJII Kenji <kenji.fujii at noe.co.jp>:
>> Hi, There.
>>
>> I was trying to append some PolyData to interpolate them at a time by
>> vtkProbeFilter and vtkDelaunay3D.
>> so I was preparing PolyData which has Points and Scalars
>> and appending them, using AppendPolyData class.
>> But I think AppendPolyData didn't work precisely.
>> Because AppendPolyData's object didn't have any Points.
>
> Does this work for you?
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/CombinePolydata
>
> David
>
>
More information about the vtk-developers
mailing list