Surface is colored using a simple scalar field (the "height" of faces in a coordinate axis direction or the Gauss curvature). Applet just demonstrates the face coloring ability.
View source code:
PaHeight.java of applet
PjHeight.java of project
PjHeight_IP.java of info panel.