tidy3d.components.geometry.Planar#

class tidy3d.components.geometry.Planar#

Geometry with one axis that is slab-like with thickness height.

Parameters

axis (Literal[0, 1, 2] = 2) – Specifies dimension of the planar axis (0,1,2) -> (x,y,z).

Show JSON schema
{
   "title": "Planar",
   "description": "Geometry with one ``axis`` that is slab-like with thickness ``height``.\n\nParameters\n----------\naxis : Literal[0, 1, 2] = 2\n    Specifies dimension of the planar axis (0,1,2) -> (x,y,z).",
   "type": "object",
   "properties": {
      "type": {
         "title": "Type",
         "default": "Planar",
         "enum": [
            "Planar"
         ],
         "type": "string"
      },
      "axis": {
         "title": "Axis",
         "description": "Specifies dimension of the planar axis (0,1,2) -> (x,y,z).",
         "default": 2,
         "enum": [
            0,
            1,
            2
         ],
         "type": "integer"
      }
   },
   "additionalProperties": false
}

Fields
attribute axis: Literal[0, 1, 2] = 2#

Specifies dimension of the planar axis (0,1,2) -> (x,y,z).

intersections(x: Optional[float] = None, y: Optional[float] = None, z: Optional[float] = None)#

Returns shapely geometry at plane specified by one non None value of x,y,z.

Parameters
  • x (float) – Position of plane in x direction, only one of x,y,z can be specified to define plane.

  • y (float) – Position of plane in y direction, only one of x,y,z can be specified to define plane.

  • z (float) – Position of plane in z direction, only one of x,y,z can be specified to define plane.

Returns

  • List[shapely.geometry.base.BaseGeometry] – List of 2D shapes that intersect plane. For more details refer to

  • `Shapely’s Documentaton <https (//shapely.readthedocs.io/en/stable/project.html>`_.)

property bounds: Tuple[Tuple[float, float, float], Tuple[float, float, float]]#

Returns bounding box for planar geometry, may implement for subclasses.

Returns

Min and max bounds packaged as (minx, miny, minz), (maxx, maxy, maxz).

Return type

Tuple[float, float, float], Tuple[float, float float]

abstract property center_axis: float#

Gets the position of the center of the geometry in the out of plane dimension.

abstract property length_axis: float#

Gets the length of the geometry along the out of plane dimension.