document 3d view & residue theorem