@@ -87,7 +87,7 @@ class PolySlab(base.Planar):
87
87
)
88
88
89
89
@staticmethod
90
- def make_shapely_polygon (vertices : ArrayLike , transpose : bool = False ) -> shapely .Polygon :
90
+ def make_shapely_polygon (vertices : ArrayLike ) -> shapely .Polygon :
91
91
"""Make a shapely polygon from some vertices, first ensures they are untraced."""
92
92
return shapely .Polygon (vertices )
93
93
@@ -650,15 +650,15 @@ def _intersections_normal(self, z: float, transpose: bool = False):
650
650
vertices = self .reference_polygon
651
651
if transpose :
652
652
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 )]
654
654
z0 = self .center_axis
655
655
z_local = z - z0 # distance to the middle
656
656
dist = - z_local * self ._tanq
657
657
vertices_z = self ._shift_vertices (self .middle_polygon , dist )[0 ]
658
658
vertices = vertices_z
659
659
if transpose :
660
660
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 )]
662
662
663
663
def _intersections_side (self , position , axis , transpose : bool = False ) -> list :
664
664
"""Find shapely geometries intersecting planar geometry with axis orthogonal to slab.
0 commit comments