<div dir="ltr">You need normals for smooth shading. So yes, something like<div><br></div><div><span style="font-size:12.8px">vtkUnstructuredGrid -> vtkGeometryFilter (with merging on) -> vtkPolyDataNormals</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Do you have to convert to polydata? Technically no, you could volume render the 3D cells using ProjectedTetrahedra but the most common approach is to extract some sort of polygonal surface and render that.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 29, 2016 at 6:57 AM, Luca Pallozzi Lavorante <span dir="ltr"><<a href="mailto:lplavorante@gmail.com" target="_blank">lplavorante@gmail.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"><div><div><div><div><div><div><div>Hi  vtkusers,<br><br></div>how can I display a vtkUnstructuredGrid using Gouraud shading? I have seen two or three similar posts on the list but was unable to find any answer.<br></div>I have an unstructured grid with ~50000 3D cells (Triquadratic Hexahedra). I need to extract its outer shape and visualize it with a smooth appearance. I verified that the method vtkActor::GetProperty()-><wbr>SetInterpolationToGouraud() is of no avail on an actor built directly from the grid's vtkDataSetMapper. So I though I should convert the unstructured grid to a polygonal representation in order to compute normals on it using vtkPolyDataNormals. Here I have another doubt. I want to extract just the boundary faces from the unstructured grid (something I have successfully done using a vtkDataSetSurfaceFilter fed with a vtkStructuredGrid).<br></div>Which is the proper pipeline I should follow?<br></div>vtkUnstructuredGrid -> vtkDataSetSurfaceFilter -> vtkPolyDataNormals ?<br></div>Is vtkDataSetSurfaceFilter able to extract only the boundary faces from an unstructured grid?<br></div><div>Also, is the polygonal conversion strictly necessary? I ask this because this is probably computationally costly.<br></div><div><br></div> Thank you in advance for any help,<br><br></div>          Luca <br></div>
<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 <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: <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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee.  Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message. 
Thank you.</span></div></div></div>
</div>