Thanks for your help Ronald! This was very useful and interesting, I will refer to this script in the future. However, I am also wondering not only about the sidewall shape of the waveguide, but rather the path of the waveguide itself. A separate question is how do I measure the total path length of a waveguide made with Nazca design? In the case I can create the waveguide path with a mathematical function, I can analytically derive the path length, however I still didn’t figure that out, and it wouldn’t work in general. Thanks again for your advice!