Pattern selection of surface-based nanostructures