Skip to content

Commit

Permalink
Updated Geometry.intersections_2dbox
Browse files Browse the repository at this point in the history
updated changelog
  • Loading branch information
alec-flexcompute authored and tylerflex committed Jul 31, 2023
1 parent 4710a1c commit 1e305d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ A convenience function `Simulation.perturbed_mediums_copy` is added to class `Si

### Fixed
- Adjoint plugin import failures after `jax.numpy.DeviceArray` -> `jax.Array` in jax 0.4.14.
- Fixed definition of shapely box bounds in Geometry.intersections_2dbox()

## [2.3.2] - 2023-7-21

Expand Down
2 changes: 1 addition & 1 deletion tidy3d/components/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def intersections_2dbox(self, plane: Box) -> List[Shapely]:

# intersect all shapes with the input plane
bs_min, bs_max = [plane.pop_axis(bounds, axis=normal_ind)[1] for bounds in plane.bounds]
shapely_box = box(minx=bs_min[0], miny=bs_min[0], maxx=bs_max[1], maxy=bs_max[1])
shapely_box = box(minx=bs_min[0], miny=bs_min[1], maxx=bs_max[0], maxy=bs_max[1])
shapely_box = plane.evaluate_inf_shape(shapely_box)
return [plane.evaluate_inf_shape(shape) & shapely_box for shape in shapes_plane]

Expand Down

0 comments on commit 1e305d4

Please sign in to comment.