Regular or irregular arrays of nanoscale structures