Skip to content

flex_rf.tidy3d.Transformed

Type: class Base(s): Geometry

Class representing a transformed geometry.

geometry [discriminated_union(GeometryType)]

Base geometry to be transformed.

transform [MatrixReal4x4] = factory: lambda: np.eye(4).tolist()

Transform matrix applied to the base geometry.

bounds()

Returns bounding box min and max coordinates.

identity()

Return an identity matrix where no transform is applied.

inside(x: NDArray[float], y: NDArray[float], z: NDArray[float])

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.

intersections_tilted_plane(normal: Coordinate, origin: Coordinate, to_2D: MatrixReal4x4, cleanup: bool = True, quad_segs: int | None = None, section_tolerance_2d: bool = False)

Return a list of shapely geometries at the plane specified by normal and origin.

inverse()

Inverse of this transform.

preserves_axis(transform: MatrixReal4x4, axis: Axis)

Indicate if the transform preserves the orientation of a given axis.

reflection(normal: Coordinate)

Return a reflection matrix.

rotation(angle: float, axis: Axis | Coordinate)

Return a rotation matrix.

scaling(x: float = 1.0, y: float = 1.0, z: float = 1.0)

Return a scaling matrix.

translation(x: float, y: float, z: float)

Return a translation matrix.