devide
devide copied to clipboard
flat shading hides information
What steps will reproduce the problem?
1. Load polydata mesh with (scalar) point data
2. Connect to slice3dVWR
3. Run network
What is the expected output? What do you see instead?
Because flat shading is used by default in the slice3dVWR module, data
values are not interpolated across the faces of the mesh. Instead, the data
value at only one of the points is used to color the entire face. This
hides the values at the other points along the face.
As a work-around, interpolation can be turned on via introspection by
digging down to the correct actor and then calling
InterpolateScalarsBeforeMappingOn() on its mapper. This will still use flat
shading for lighting, but values are now shown for each point.
Original issue reported on code.google.com by [email protected] on 25 Jun 2009 at 9:13