<div dir="ltr"><div><div><div><div><div>Hi Cory, thank you for the quick reply.<br></div>I have tried setting the whole extent of the grid in the vtkStructuredGridGeometryFIlter and obtained only the grid's points as before.<br></div>Then I used vtkDataSetGeometryFilter and it worked. It even copied nicely the cell data I had in the original grid.<br></div>I think this solved the problem.<br><br></div>  Thank you once again,<br><br></div>          Luca<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 10, 2016 at 2:56 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">Two things to try: 1) set the extent to the whole extent of your grid,<br>
or 2) try using vtkDataSetSurfaceFilter instead of<br>
vtkStructuredGridGeometryFilte<wbr>r.<br>
<br>
Cory<br>
<br>
On Wed, Aug 10, 2016 at 1:51 PM, Luca Pallozzi Lavorante<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:lplavorante@gmail.com">lplavorante@gmail.com</a>> wrote:<br>
> Sorry Cory, I was mistaken and way too quick in replying. When I wrote the<br>
> last mail I was still observing the output from the six combined<br>
> vtkStructuredGridGeometryFilte<wbr>r's. Now I have tried one single filter<br>
> without providing any SetExtent call and the result I have is the<br>
> visualization of the StructuredGrid's points. No Boundary. How can I<br>
> instruct the filter to generate the Boundaries?<br>
><br>
> Thank you<br>
><br>
>    Luca<br>
><br>
> On Wed, Aug 10, 2016 at 2:44 PM, Luca Pallozzi Lavorante<br>
> <<a href="mailto:lplavorante@gmail.com">lplavorante@gmail.com</a>> wrote:<br>
>><br>
>> Hi Cory, thank you for your reply.<br>
>><br>
>> You are absolutely right! I have followed  your adviced and removed the<br>
>> SetExtent() call to vtkStructuredGridGeometryFIlte<wbr>r (I had previously used<br>
>> six of them to get the all the boundaries and then merged them with<br>
>> vtkAppendPolyData) and I have magically obtained the complete boundary as<br>
>> output with a single filter.<br>
>> It worked really fine.<br>
>> Thank you for your kind help!<br>
>><br>
>> Best regards,<br>
>><br>
>>    Luca<br>
>><br>
>><br>
>> On Wed, Aug 10, 2016 at 2:07 PM, Cory Quammen <<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>><br>
>> wrote:<br>
>>><br>
>>> Luca,<br>
>>><br>
>>> You are on the right track. vtkStructuredGridGeometryFilte<wbr>r should<br>
>>> extract just one polydata defining all the boundaries of your structured<br>
>>> grid. In the end, your pipeline should look like<br>
>>><br>
>>> vtkStructuredGrid -> vtkStructuredGridGeometryFilte<wbr>r -><br>
>>> vtkPolyDataNormals -> vtkDataSetMapper -> vtkActor<br>
>>><br>
>>> HTH,<br>
>>> Cory<br>
>>><br>
>>> On Wed, Aug 10, 2016 at 12:08 PM, Luca Pallozzi Lavorante<br>
>>> <<a href="mailto:lplavorante@gmail.com">lplavorante@gmail.com</a>> wrote:<br>
>>>><br>
>>>> Hi everybody,<br>
>>>> Is there  any way to visualize a StructuredGrid's boundary with Gouraud<br>
>>>> shading?<br>
>>>> When I use a very simple pipeline vtkStructuredGrid -> vtkDataSetMapper<br>
>>>> -> vtkActor I am able to visualize the closed boundary of the grid. The<br>
>>>> 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<br>
>>>> this closed surface as a vtkPolyData and then use vtkPolyDataNormals on it?<br>
>>>> If this is the case, How can I extract the boundary? Should I use<br>
>>>> vtkStructuredGridGeometryFilte<wbr>r to obtain six separate polydata's defining<br>
>>>> the boundary and then append them using vtkAppendPolyData?<br>
>>>><br>
>>>> Thank you very much for your help<br>
>>>><br>
>>>> Luca Pallozzi Lavorante<br>
>>>><br>
>>>> ______________________________<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<br>
>>>> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
>>>><br>
>>>> Please keep messages on-topic and check the VTK FAQ at:<br>
>>>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</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/<wbr>mailman/listinfo/vtkusers</a><br>
>>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Cory Quammen<br>
>>> R&D Engineer<br>
>>> Kitware, Inc.<br>
>><br>
>><br>
><br>
<br>
<br>
<br>
--<br>
Cory Quammen<br>
R&D Engineer<br>
Kitware, Inc.<br>
</div></div></blockquote></div><br></div>