I want to simulate reflection from a photonic structure which has lines of silicon nitride deposited over a glass surface. There are 20,000 lines and so I can't create the 3D model manually. I am looking for an automated way of creating the structure. Apparently MATLAB is a good solution for this. I would also consider using AutoCAD for the same, so if you have a solution for AutoCAD, please add it. After the model has been built, I will be importing it into COMSOL to carry out the actual simulation.