[vtkusers] Gouraud shading of a vtkStructuredGrid's boundary

Cory Quammen cory.quammen at kitware.com
Wed Aug 10 13:07:47 EDT 2016


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


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/0129266c/attachment.html>

More information about the vtkusers mailing list