Atomic-force microscopy is used to study the local roughness and mechanical properties of a surface. AFM is also used to characterize adhesion and friction properties for micro- and nano-patterned superhydrophobic surfaces. Results can be used to fit a curve to the surface topography and determine the radius of curvature of nanostructures.