I'm getting strange spikes in my surface S with the code below. PlotPoints seems to help, but it doesn't solve the problem. Any explanation and solution would be much appreciated.
a := {x, y, 1 - x}
b := {x, y, x}
S := Inner[Times,
Transpose[Inner[Times, {1 - x, x}, {{a /. {x -> 0, y -> 0}, b /. {x -> 0, y -> 1}},
{a /. {x -> 1, y -> 0}, b /. {x -> 1, y -> 1}}}, Plus]], {1 - y, y}, Plus]
ParametricPlot3D[S, {x, 0, 1}, {y, 0, 1}]
ParametricPlot3D[S, {x, 0, 1}, {y, 0, 1}, PlotPoints -> 100]
Expand[S]
ParametricPlot3D[{x, y, 1 - x - y + 2 x y}, {x, 0, 1}, {y, 0, 1}]
EDIT: It seems that y -> is somehow responsible.

y -> 0here because I thought it was redundant for my MWE. Now it's back in. It does matter in full code. Withouty ->, I also don't get spikes. Strange. – u17 Apr 25 '13 at 18:32Expandhad helped in version8.0: http://mathematica.stackexchange.com/questions/3568/bug-in-integrate-for-mathematica/3571#3571. However that bug has been fixed in ver.9.0. – Artes Apr 25 '13 at 18:38