Skip to content

Commit 6630b87

Browse files
committed
removed some crud from PolySlab.make_shapely_polygon()
1 parent 45c73ec commit 6630b87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tidy3d/components/geometry/polyslab.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class PolySlab(base.Planar):
8787
)
8888

8989
@staticmethod
90-
def make_shapely_polygon(vertices: ArrayLike, transpose: bool = False) -> shapely.Polygon:
90+
def make_shapely_polygon(vertices: ArrayLike) -> shapely.Polygon:
9191
"""Make a shapely polygon from some vertices, first ensures they are untraced."""
9292
return shapely.Polygon(vertices)
9393

@@ -650,15 +650,15 @@ def _intersections_normal(self, z: float, transpose: bool = False):
650650
vertices = self.reference_polygon
651651
if transpose:
652652
vertices = vertices[:, (1, 0)] # swap column 0 (x coords) with column 1 (y coords)
653-
return [self.make_shapely_polygon(vertices, transpose=transpose)]
653+
return [self.make_shapely_polygon(vertices)]
654654
z0 = self.center_axis
655655
z_local = z - z0 # distance to the middle
656656
dist = -z_local * self._tanq
657657
vertices_z = self._shift_vertices(self.middle_polygon, dist)[0]
658658
vertices = vertices_z
659659
if transpose:
660660
vertices = vertices[:, (1, 0)] # swap column 0 (x coords) with column 1 (y coords)
661-
return [self.make_shapely_polygon(vertices, transpose=transpose)]
661+
return [self.make_shapely_polygon(vertices)]
662662

663663
def _intersections_side(self, position, axis, transpose: bool = False) -> list:
664664
"""Find shapely geometries intersecting planar geometry with axis orthogonal to slab.

0 commit comments

Comments
 (0)