HelgeGehring / gdshelpers

GDSHelpers is an open-source package for automatized pattern generation for nano-structuring.
https://www.uni-muenster.de/Physik.PI/Pernice/
GNU Lesser General Public License v3.0
110 stars 33 forks source link

Add Waveguide.add_route_straight_to_port #29

Closed fbeutel closed 4 years ago

fbeutel commented 4 years ago

Add method add_route_straight_to_port to Waveguide. Allows routing a straight segment to a target port and tapers the width linearly on the way.

This can be used for electrode contact pads etc.

route_port

HelgeGehring commented 4 years ago

Looks good! I'd guess a test for another angle than 0 and 90° would make sense, what do you think?

HelgeGehring commented 4 years ago

And could you fix the formatting? Flake8 shows some warnings

fbeutel commented 4 years ago

ok, updated the formatting and added another test case

HelgeGehring commented 4 years ago

Thanks!