[vtkusers] Flat interpolation under OpenGL2 backend
Fernando Nellmeldin
f.nellmeldin at open-engineering.com
Thu Feb 18 10:14:08 EST 2016
Hello friends.
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.
The problem is that the call to set flat is not working, there is no change
and the actor is always rendered smooth.
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.
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:
#if VTK_MAJOR_VERSION <= 5
geometryFilter->SetInputConnection(m_model->GetProducerPort());
#else
geometryFilter->SetInputData(m_model);
#endif
Therefore, is the support of flat interpolation dropped, or I have to add
something to make it work under OpenGL2 backend?
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160218/8896262a/attachment.html>
More information about the vtkusers
mailing list