Display a 3D image of an AFMImage and store it on disk if fullfilename variable is set.
It uses the rgl
package.
displayIn3D(AFMImage, width, fullfilename, changeViewpoint, noLight)
the AFM image to be displayed in three dimensions.
(optional) width of the image. Default is 512 pixels. Note: width can't be superior to screen resolution.
(optional) the directory and filename to save the png of the 3D image. If this variable is missing, the function will not save on disk the 3D image.
(optional) if TRUE, the viewpoint is changed. Default is TRUE.
if TRUE, the ligth is set off