3D chart


I’m interested in 3D chart creation, and I have some 3D problem:

My chart is a surface in space and the y axis is divided in 10 diferent region. So every points between two region have the same colour.

The surface is formed from rectangles. So the problem is how to fill corect every rectangle?