Even if too late for the r.mapcalc extension to 3rd dimension I have uploaded the G3D library programming comments in the source code (doxygen style). Running make progman will include now also g3dlib. If you see any mistakes in the documentation, please fix directly in CVS. Cheers Markus