{
  "title": "ClipOperation",
  "public_path": "flex_rf.tidy3d.ClipOperation",
  "lookup_path": "tidy3d.ClipOperation",
  "slug": "flex_rf/tidy3d/ClipOperation",
  "public_url": "/rf/latest/autogenerated/flex_rf/tidy3d/clipoperation/",
  "object_kind": "class",
  "introduction": "Class representing the result of a set operation between geometries.",
  "notes": "",
  "examples": "",
  "references": "",
  "signature": "class ClipOperation(Geometry)",
  "source": {
    "path": "flex/public/tidy3d/tidy3d/components/geometry/base.py",
    "url": "",
    "lineno": 3266,
    "endlineno": 3589
  },
  "bases": [
    "Geometry"
  ],
  "parameter_rows": [
    {
      "name": "operation",
      "annotation": "ClipOperationType",
      "default": "",
      "description": "Operation to be performed between geometries.",
      "origin": "declared"
    },
    {
      "name": "geometry_a",
      "annotation": "discriminated_union(GeometryType)",
      "default": "",
      "description": "First operand for the set operation. It can be any geometry type, including `GeometryGroup`.",
      "origin": "declared"
    },
    {
      "name": "geometry_b",
      "annotation": "discriminated_union(GeometryType)",
      "default": "",
      "description": "Second operand for the set operation. It can also be any geometry type.",
      "origin": "declared"
    },
    {
      "name": "attrs",
      "annotation": "dict",
      "default": "factory: dict",
      "description": "Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields, `attrs` are mutable. For example, the following is allowed for setting an `attr` `obj.attrs['foo'] = bar`. Also note that Tidy3D will raise a `TypeError` if `attrs` contain objects that can not be serialized. One can check if `attrs` are serializable by calling `obj.model_dump_json()`.",
      "origin": "inherited"
    }
  ],
  "members": [
    {
      "name": "bounds",
      "kind": "function",
      "signature": "bounds()",
      "description": "Returns bounding box min and max coordinates."
    },
    {
      "name": "inside",
      "kind": "function",
      "signature": "inside(x: NDArray[float], y: NDArray[float], z: NDArray[float])",
      "description": "For input arrays `x`, `y`, `z` of arbitrary but identical shape, return an array with the same shape which is `True` for every point in zip(x, y, z) that is inside the volume of the `Geometry`, and `False` otherwise."
    },
    {
      "name": "inside_meshgrid",
      "kind": "function",
      "signature": "inside_meshgrid(x: NDArray[float], y: NDArray[float], z: NDArray[float])",
      "description": "Faster way to check `self.inside` on a meshgrid. The input arrays are assumed sorted."
    },
    {
      "name": "intersections_plane",
      "kind": "function",
      "signature": "intersections_plane(x: float | None = None, y: float | None = None, z: float | None = None, cleanup: bool = True, quad_segs: int | None = None, section_tolerance_2d: bool = False)",
      "description": "Returns list of shapely geometries at plane specified by one non-None value of x,y,z."
    },
    {
      "name": "intersections_tilted_plane",
      "kind": "function",
      "signature": "intersections_tilted_plane(normal: Coordinate, origin: Coordinate, to_2D: MatrixReal4x4, cleanup: bool = True, quad_segs: int | None = None, section_tolerance_2d: bool = False)",
      "description": "Return a list of shapely geometries at the plane specified by normal and origin."
    },
    {
      "name": "to_polygon_list",
      "kind": "function",
      "signature": "to_polygon_list(base_geometry: Shapely, cleanup: bool = False)",
      "description": "Return a list of valid polygons from a shapely geometry, discarding points, lines, and empty polygons, and empty triangles within polygons."
    }
  ],
  "group": "flex_rf.tidy3d"
}
