factory.py

Define the straight and bend waveguide factories for auto-routing function in PhotoCAD.

  1. StraightFactory : Import the straight waveguide to use it for straight connection.

  2. EulerBendFactory : Import BendEuler and BendEuler90``from ``bend_euler and 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 and BendEuler90 users can remove it after setting the right bend radius.

    ../_images/bend90warning.png