factory.py
Define the straight and bend waveguide factories for auto-routing function in PhotoCAD.
StraightFactory: Import the straight waveguide to use it for straight connection.EulerBendFactory: ImportBendEuler,BendEuler90,BendEuler90_STRIP_C_WIREandBendEuler90_STRIP_O_WIREfrombend_eulerand assigned each component to different situations.Note that the default bend radius of every 90-degree bend used for auto-routing was set based on the different types of waveguides. However, users should define the bend radius themselves to meet the design requirements. A warning text is added in the component
BendEuler,BendEuler90,BendEuler90_STRIP_C_WIREandBendEuler90_STRIP_O_WIREusers can remove it after setting the right bend radius.