gdsfactory.geometry.layer_priority#
- gdsfactory.geometry.layer_priority(component: str | Callable[[...], Component] | Component | dict[str, Any], layer_high_order: tuple[int, int] | str, layer_low_order: tuple[int, int] | str, remove_high_order: bool = False, **kwargs) Component [source]#
Returns new component after removing one layer from another.
- Parameters:
component – spec.
layer_high_order – layer used to etch.
layer_low_order – layer etched into.
remove_high_order – whether to also remove the high order layer polygons. Useful if the higher order layer is purely logical.
kwargs – keyword arguments for boolean difference operation.