fdtdx.ExtrudedPolygon

Bases: StaticMultiMaterialObject

A polygon object specified by a list of vertices. The coordinate system has its origin at the lower left of the bounding box of the polygon.

Attributes:
  • material_name (str) –

    Name of the material in the materials dictionary to be used for the object

  • axis (int) –

    The extrusion axis.

  • vertices (ndarray) –

    numpy array of shape (N, 2) specifying the position of vertices in metrical units (meter).

horizontal_axis property

horizontal_axis: int

Gets the horizontal axis perpendicular to the fiber axis.

Returns:
  • int( int ) –

    The index of the horizontal axis (0=x or 1=y).

vertical_axis property

vertical_axis: int

Gets the vertical axis perpendicular to the fiber axis.

Returns:
  • int( int ) –

    The index of the vertical axis (1=y or 2=z).