How do I create a box?

How do I create a box?#

Date

Category

2023-12-06 21:33:15

Structures

You can create a box geometry using the tidy3d.Box object. You can specify the center and size parameters, as below:


box = tidy3d.Box(center=(1,2,3), size=(2,2,2))

Or you can use the tidy3d.Box.from_bounds() method, where you should define the rmin and rmax coordinates of the lower and upper box corners. For example:


box = tidy3d.Box.from_bounds(
  rmin=(-10, -1, -0.1),
  rmax=(10, 1, 0.1),
)