[vtkusers] Gouraud shading of a vtkStructuredGrid's boundary

Luca Pallozzi Lavorante lplavorante at gmail.com
Wed Aug 10 13:44:07 EDT 2016

Hi Cory, thank you for your reply.

You are absolutely right! I have followed  your adviced and removed the
SetExtent() call to vtkStructuredGridGeometryFIlter (I had previously used
six of them to get the all the boundaries and then merged them with
vtkAppendPolyData) and I have magically obtained the complete boundary as
output with a single filter.
It worked really fine.
Thank you for your kind help!

Best regards,


On Wed, Aug 10, 2016 at 2:07 PM, Cory Quammen <cory.quammen at kitware.com>

> Luca,
> You are on the right track. vtkStructuredGridGeometryFilter should
> extract just one polydata defining all the boundaries of your structured
> grid. In the end, your pipeline should look like
> vtkStructuredGrid -> vtkStructuredGridGeometryFilter -> vtkPolyDataNormals
> -> vtkDataSetMapper -> vtkActor
> HTH,
> Cory
> On Wed, Aug 10, 2016 at 12:08 PM, Luca Pallozzi Lavorante <
> lplavorante at gmail.com> wrote:
>> Hi everybody,
>> Is there  any way to visualize a StructuredGrid's boundary with Gouraud
>> shading?
>> When I use a very simple pipeline vtkStructuredGrid -> vtkDataSetMapper
>> -> vtkActor I am able to visualize the closed boundary of the grid. The
>> polygons used in the rendering are triangles with a flat shading look.
>> If I wish to apply  a Gouraud shading to this boundary, should I extract
>> this closed surface as a vtkPolyData and then use vtkPolyDataNormals on it?
>> If this is the case, How can I extract the boundary? Should I use
>> vtkStructuredGridGeometryFilter to obtain six separate polydata's
>> defining the boundary and then append them using vtkAppendPolyData?
>> Thank you very much for your help
>> Luca Pallozzi Lavorante
>> _______________________________________________
>> 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
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
> --
> Cory Quammen
> R&D Engineer
> Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160810/47e3278d/attachment.html>

More information about the vtkusers mailing list