The genes are made up of segments of DNA. The DNA has a three dimensional structure as coiling and super-coiling occurs in it to give it a three dimensional structure. But genes itself are one- dimensional. Genes are the hereditary molecules.
The genes makes particular proteins. Proteins also have three dimensional structure as they undergo coiling and super-coiling.