gdstk.any_inside

gdstk.any_inside(points, polygons) bool

Check whether any of the points are inside the set of polygons.

Points on polygon edges or coinciding with any of their vertices are considered inside.

Parameters:
  • points – Points to check. Each point can be a pair of coordinates or a complex number.

  • polygons (Polygon, FlexPath, RobustPath, Reference, sequence) – Polygons to test against. If this is a sequence, each element can be any of the polygonal types or a sequence of points (coordinate pairs or complex).

Returns:

True if any point is inside the polygon set, False otherwise.