Method and apparatus for patterning micro and nano structures using a mask-less process