<div dir="ltr"><div><div><div><div>Hi Cory, thank you for your reply.<br><br></div>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.<br></div>It worked really fine.<br></div>Thank you for your kind help!<br><br></div><div>Best regards,<br></div><div><br></div> Luca<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 10, 2016 at 2:07 PM, Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Luca,<div><br></div><div>You are on the right track. <span style="font-size:12.8px">vtkStructuredGridGeomet<wbr>ryFilte</span><span style="font-size:12.8px">r should extract just one polydata defining all the boundaries of your structured grid. In the end, your pipeline should look like</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">vtkStructuredGrid -> </span><span style="font-size:12.8px">vtkStructuredGridGeometryFi<wbr>lte</span><span style="font-size:12.8px">r -> </span><span style="font-size:12.8px">vtkPolyDataNormals -> </span><span style="font-size:12.8px">vtkDataSetMapper -> vtkActor</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">HTH,</span></div><div><span style="font-size:12.8px">Cory</span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Aug 10, 2016 at 12:08 PM, Luca Pallozzi Lavorante <span dir="ltr"><<a href="mailto:lplavorante@gmail.com" target="_blank">lplavorante@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div>Hi everybody,<br></div>Is there any way to visualize a StructuredGrid's boundary with Gouraud shading?<br></div>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. <br>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?<br></div>If this is the case, How can I extract the boundary? Should I use vtkStructuredGridGeometryFilte<wbr>r to obtain six separate polydata's defining the boundary and then append them using vtkAppendPolyData?<br></div><br>Thank you very much for your help<span><font color="#888888"><br><br></font></span></div><span><font color="#888888">Luca Pallozzi Lavorante<br></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</font></span></div>
</blockquote></div><br></div></div>