flex_rf.tidy3d.Box
Type: class │ Base(s): SimplePlaneIntersection, Centered
Description
Section titled “Description”Rectangular prism.
Also base class for Simulation, Monitor, and Source.
Example(s)
Section titled “Example(s)”b = Box(center=(1,2,3), size=(2,2,2))Parameters
Section titled “Parameters”size [TracedSize] |
|
Size in x, y, and z directions. |
center [TracedCoordinate] = (0.0, 0.0, 0.0) |
|
Center of object in x, y, and z. |
Methods
Section titled “Methods”bounds() |
|
Returns bounding box min and max coordinates. |
from_bounds(rmin: Coordinate, rmax: Coordinate, **kwargs: Any) |
|
Constructs a |
geometry() |
|
|
inside(x: NDArray[float], y: NDArray[float], z: NDArray[float]) |
|
For input arrays |
intersections_plane(x: float | None = None, y: float | None = None, z: float | None = None, cleanup: bool = True, quad_segs: int | None = None, section_tolerance_2d: bool = False) |
|
Returns shapely geometry at plane specified by one non None value of x,y,z. |
intersections_with(other: Geometry, cleanup: bool = True, quad_segs: int | None = None, section_tolerance_2d: bool = False) |
|
Returns list of shapely geometries representing the intersections of the geometry with this 2D box. |
padded_copy(x: tuple[pydantic.NonNegativeFloat, pydantic.NonNegativeFloat] | None = None, y: tuple[pydantic.NonNegativeFloat, pydantic.NonNegativeFloat] | None = None, z: tuple[pydantic.NonNegativeFloat, pydantic.NonNegativeFloat] | None = None) |
|
Created a padded copy of a |
slightly_enlarged_copy() |
|
Box size slightly enlarged around machine precision. |
surfaces(size: Size, center: Coordinate, **kwargs: Any) |
|
Returns a list of 6 |
surfaces_with_exclusion(size: Size, center: Coordinate, **kwargs: Any) |
|
Returns a list of 6 |
zero_dims() |
|
A list of axes along which the |