Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improved performance of adjoint gradient computation for `PolySlab` and `Cylinder` geometries through vectorized sidewall patch collection (~4x speedup).

### Fixed
- Fixed normal for `Box` shape gradient computation to always point outward from boundary which is needed for correct PEC handling.

## [2.10.0rc3] - 2025-11-26

Expand Down
2 changes: 1 addition & 1 deletion tidy3d/components/geometry/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2740,7 +2740,7 @@ def compute_integration_weight(grid_points: NDArray[float]) -> float:
perps1 = np.zeros_like(grid_points)
perps2 = np.zeros_like(grid_points)

normals[:, axis_normal] = 1
normals[:, axis_normal] = -1 if (min_max_index == 0) else 1
perps1[:, axis_perp[0]] = 1
perps2[:, axis_perp[1]] = 1

Expand Down
Loading