fvpolpeta / devide

Automatically exported from code.google.com/p/devide
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

flat shading hides information #132

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 stef.bus...@gmail.com on 25 Jun 2009 at 9:13