addition of the ascii option on pgm3D