We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 085a1f9 commit 197b9d3Copy full SHA for 197b9d3
tidy3d/components/grid/mesher.py
@@ -119,8 +119,10 @@ def parse_structures(
119
query_inds = tree.query_items(bbox_2d)
120
121
# Remove all lower structures that the current structure completely contains
122
- inds_lower = [ind for ind in query_inds if ind < str_ind]
123
- query_bbox = [struct_bbox[ind] for ind in inds_lower if struct_bbox[ind] is not None]
+ inds_lower = [
+ ind for ind in query_inds if ind < str_ind and struct_bbox[ind] is not None
124
+ ]
125
+ query_bbox = [struct_bbox[ind] for ind in inds_lower]
126
bbox_contains_inds = self.contains_3d(bbox, query_bbox)
127
for ind in bbox_contains_inds:
128
struct_bbox[inds_lower[ind]] = None
0 commit comments