gdsfactory.geometry.boolean_klayout#
- gdsfactory.geometry.boolean_klayout(gdspath1: Component | str | Path, gdspath2: Component | str | Path, layer1: tuple[int, int] = (1, 0), layer2: tuple[int, int] = (1, 0), layer3: tuple[int, int] = (2, 0), operation: str = 'xor') Component [source]#
Returns a boolean operation between two components Uses KLayout python API.
- Parameters:
gdspath1 – path to GDS or Component.
gdspath2 – path to GDS or Component.
layer1 – tuple for gdspath1.
layer2 – tuple for gdspath2.
layer3 – for the result of the operation.