<div dir="ltr">Hello friends.<div><br><div>In our application, we want to allow the user to alternate between a flat and a smooth shading of the colors in an actor. To do this, we have a option that allows the user to call setInterpolationToFlat() or setInterpolationToPhong() in the property of the vtkactor. </div><div><br></div><div>The problem is that the call to set flat is not working, there is no change and the actor is always rendered smooth.</div><div><br></div><div>I've tried with VTK 6.3.0 and VTK 7.0.0 under OpenGL2 backend. In VTK 5.10 (using the old opengl), this works as expected. </div><div><br></div><div>And please note that in the three cases, the code is exactly the same. Well, except the connection between the ugrid and the geometry filter that I have the usual if:</div><div><div><span class="" style="white-space:pre"> </span>#if VTK_MAJOR_VERSION <= 5</div><div><span class="" style="white-space:pre"> </span>geometryFilter->SetInputConnection(m_model->GetProducerPort());</div><div><span class="" style="white-space:pre"> </span>#else</div><div><span class="" style="white-space:pre"> </span>geometryFilter->SetInputData(m_model);</div><div><span class="" style="white-space:pre"> </span>#endif</div></div><div><br></div><div>Therefore, is the support of flat interpolation dropped, or I have to add something to make it work under OpenGL2 backend?</div><div><div><br></div><div>Thank you!</div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><div style="font-size:12.8px"><b><font color="#cc0000"><span style="font-family:'arial black',sans-serif;font-size:12.8px"><br></span></font></b></div></div></div></div></div></div></div>
</div></div></div>