gdsfactory.geometry.xor_diff

Contents

gdsfactory.geometry.xor_diff#

gdsfactory.geometry.xor_diff(A, B, precision: float = 0.0001) Component[source]#

Given two Components A and B, performs the layer-by-layer XOR difference between A and B and returns polygons representing the differences between A and B.

gdsfactory wrapper for phidl.geometry.xor_diff

Parameters:
  • A – Component(/Reference) or list of Component(/References).

  • B – Component(/Reference) or list of Component(/References).

  • precision – Desired precision for rounding vertex coordinates.

Returns

Component: containing a polygon(s) defined by the XOR difference result between A and B.