flex_rf.tidy3d.Transformed
Type: class │ Base(s): Geometry
Description
Section titled “Description”Class representing a transformed geometry.
Parameters
Section titled “Parameters”geometry [discriminated_union(GeometryType)] |
|
Base geometry to be transformed. |
transform [MatrixReal4x4] = factory: lambda: np.eye(4).tolist() |
|
Transform matrix applied to the base geometry. |
Methods
Section titled “Methods”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 |
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. |