Extruded

class photonforge.Extruded(medium, face, limits, dilations=(0, 0), axis='z')

Extruded volumetric object.

Parameters:
  • medium (MediumType) – Tidy3D medium used in this structure.

  • face (Rectangle | Circle | Polygon | Path) – Planar structure to be extruded.

  • limits (Sequence[float]) – Coordinates for the lower and upper limits of extrusion in the out-of-plane axis.

  • dilations (Sequence[float]) – Dilations (erosions, if negative) applied to the planar structure at the lower and upper limits of extrusion.

  • axis (Literal["x", "y", "z"]) – Extrusion (out-of-plane) axis.

Example

>>> extruded = Extruded(
...     td.Medium(permittivity=1.5), pf.Circle(5), (-0.5, 0.5)
... )
>>> extruded.to_tidy3d().plot(z=0)

Methods

copy([deep])

Create a copy of this 3D structure.

to_tidy3d()

Create a Tidy3D structure from this extruded solid.

Attributes

axis

Extrusion axis.

dilations

Face dilations at the extrusion limits.

face

Plannar structure generating this extruded solid.

limits

Extrusion limits.

medium

Extruded solid medium.

properties

Object properties.

axis

Extrusion axis.

Type:

str

copy(deep=False)

Create a copy of this 3D structure.

Parameters:
  • deep – If set, creates copies of any internal structures. Otherwise,

  • created. (a shallow copy of this solid is)

Returns:

New copy.

Return type:

Extruded

dilations

Face dilations at the extrusion limits.

Type:

ndarray

face

Plannar structure generating this extruded solid.

Type:

Rectangle | Circle | Polygon | Path

limits

Extrusion limits.

Type:

ndarray

medium

Extruded solid medium.

Type:

MediumType

properties

Object properties.

Type:

Properties

to_tidy3d()

Create a Tidy3D structure from this extruded solid.

Returns:

Tidy3D structure.

Return type:

tidy3d.Structure