[vtkusers] Gouraud shading of a vtkStructuredGrid's boundary
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
> 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/
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers