[vtkusers] Unstructured Grid to Polygonal Mesh

Alex Malyushytskyy alexmalvtk at gmail.com
Wed Jun 5 18:27:03 EDT 2013


You supposed to provide correct input to filter and pointer to reader is
definitely not what was expected.

There is nothing wrong with geometryFilter->
SetInputConnection(reader->GetOutputPort());
but I bet
geometryFilter->SetInput(reader->GetOutput() );
would work too.

Alex



On Wed, Jun 5, 2013 at 11:07 AM, Sahan Ranasinghe <sahancr at gmail.com> wrote:

> It is working. Thank you for help. I
> changed geometryFilter->SetInput(reader);  to
> geometryFilter->SetInputConnection(reader->GetOutputPort());
> also used the vtkXMLUnstructuredGridReader to read the .vtu file.
>
> Thank you for help
>
> Regards,
> Sahan
>
>
> On Wed, Jun 5, 2013 at 11:23 PM, Sahan Ranasinghe <sahancr at gmail.com>wrote:
>
>> DearnJoachim,
>>
>> I tried to use Geometry Filter. But I have .vtu file. If I insert .vtu
>> file as an input. it gives an error. Can you please give me a suggestion
>> for that?
>>  Thank you.
>>
>> Sahan
>>
>>
>> On Wed, Jun 5, 2013 at 3:24 PM, Joachim Pouderoux <
>> joachim.pouderoux at kitware.com> wrote:
>>
>>> Hi Sahan,
>>>
>>> You may use the vtkGeometryFilter.
>>> See http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/GeometryFilter
>>>
>>> Regards,
>>>
>>> *Joachim Pouderoux*
>>>
>>> *PhD, R&D Enginee*r
>>> *Kitware SAS <http://www.kitware.fr>*
>>>
>>>
>>>
>>> 2013/6/5 Sahan Ranasinghe <sahancr at gmail.com>
>>>
>>>>  Hi all,
>>>>
>>>> Can anybody tell me how to convert vtk unstructured grid to vtk
>>>> polygonal mesh?
>>>> Thank you.
>>>>
>>>> Regards,
>>>> Sahan
>>>>
>>>> _______________________________________________
>>>> 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 VTK FAQ at:
>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>
>>>>
>>>
>>
>
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130605/d4333ad4/attachment.htm>


More information about the vtkusers mailing list