@@ -218,10 +218,7 @@ def inside_meshgrid(
218
218
219
219
@abstractmethod
220
220
def intersections_tilted_plane (
221
- self ,
222
- normal : Coordinate ,
223
- origin : Coordinate ,
224
- to_2D : MatrixReal4x4 ,
221
+ self , normal : Coordinate , origin : Coordinate , to_2D : MatrixReal4x4
225
222
) -> list [Shapely ]:
226
223
"""Return a list of shapely geometries at the plane specified by normal and origin.
227
224
@@ -243,10 +240,7 @@ def intersections_tilted_plane(
243
240
"""
244
241
245
242
def intersections_plane (
246
- self ,
247
- x : Optional [float ] = None ,
248
- y : Optional [float ] = None ,
249
- z : Optional [float ] = None ,
243
+ self , x : Optional [float ] = None , y : Optional [float ] = None , z : Optional [float ] = None
250
244
) -> list [Shapely ]:
251
245
"""Returns list of shapely geometries at plane specified by one non-None value of x,y,z.
252
246
@@ -774,10 +768,7 @@ def evaluate_inf_shape(shape: Shapely) -> Shapely:
774
768
return shape
775
769
776
770
@staticmethod
777
- def pop_axis (
778
- coord : tuple [Any , Any , Any ],
779
- axis : int ,
780
- ) -> tuple [Any , tuple [Any , Any ]]:
771
+ def pop_axis (coord : tuple [Any , Any , Any ], axis : int ) -> tuple [Any , tuple [Any , Any ]]:
781
772
"""Separates coordinate at ``axis`` index from coordinates on the plane tangent to ``axis``.
782
773
783
774
Parameters
@@ -799,11 +790,7 @@ def pop_axis(
799
790
return axis_val , tuple (plane_vals )
800
791
801
792
@staticmethod
802
- def unpop_axis (
803
- ax_coord : Any ,
804
- plane_coords : tuple [Any , Any ],
805
- axis : int ,
806
- ) -> tuple [Any , Any , Any ]:
793
+ def unpop_axis (ax_coord : Any , plane_coords : tuple [Any , Any ], axis : int ) -> tuple [Any , Any , Any ]:
807
794
"""Combine coordinate along axis with coordinates on the plane tangent to the axis.
808
795
809
796
Parameters
@@ -1602,10 +1589,7 @@ class SimplePlaneIntersection(Geometry, ABC):
1602
1589
"""A geometry where intersections with an axis aligned plane may be computed efficiently."""
1603
1590
1604
1591
def intersections_tilted_plane (
1605
- self ,
1606
- normal : Coordinate ,
1607
- origin : Coordinate ,
1608
- to_2D : MatrixReal4x4 ,
1592
+ self , normal : Coordinate , origin : Coordinate , to_2D : MatrixReal4x4
1609
1593
) -> list [Shapely ]:
1610
1594
"""Return a list of shapely geometries at the plane specified by normal and origin.
1611
1595
Checks special cases before relying on the complete computation.
@@ -1651,11 +1635,7 @@ def transform(p_array):
1651
1635
1652
1636
@abstractmethod
1653
1637
def _do_intersections_tilted_plane (
1654
- self ,
1655
- normal : Coordinate ,
1656
- origin : Coordinate ,
1657
- to_2D : MatrixReal4x4 ,
1658
- transpose : bool = False ,
1638
+ self , normal : Coordinate , origin : Coordinate , to_2D : MatrixReal4x4
1659
1639
) -> list [Shapely ]:
1660
1640
"""Return a list of shapely geometries at the plane specified by normal and origin.
1661
1641
@@ -1735,10 +1715,7 @@ def finite_length_axis(self) -> float:
1735
1715
return min (self .length_axis , LARGE_NUMBER )
1736
1716
1737
1717
def intersections_plane (
1738
- self ,
1739
- x : Optional [float ] = None ,
1740
- y : Optional [float ] = None ,
1741
- z : Optional [float ] = None ,
1718
+ self , x : Optional [float ] = None , y : Optional [float ] = None , z : Optional [float ] = None
1742
1719
):
1743
1720
"""Returns shapely geometry at plane specified by one non None value of x,y,z.
1744
1721
@@ -2055,10 +2032,7 @@ def surfaces_with_exclusion(cls, size: Size, center: Coordinate, **kwargs):
2055
2032
2056
2033
@verify_packages_import (["trimesh" ])
2057
2034
def _do_intersections_tilted_plane (
2058
- self ,
2059
- normal : Coordinate ,
2060
- origin : Coordinate ,
2061
- to_2D : MatrixReal4x4 ,
2035
+ self , normal : Coordinate , origin : Coordinate , to_2D : MatrixReal4x4
2062
2036
) -> list [Shapely ]:
2063
2037
"""Return a list of shapely geometries at the plane specified by normal and origin.
2064
2038
@@ -2109,10 +2083,7 @@ def _do_intersections_tilted_plane(
2109
2083
return path .polygons_full
2110
2084
2111
2085
def intersections_plane (
2112
- self ,
2113
- x : Optional [float ] = None ,
2114
- y : Optional [float ] = None ,
2115
- z : Optional [float ] = None ,
2086
+ self , x : Optional [float ] = None , y : Optional [float ] = None , z : Optional [float ] = None
2116
2087
):
2117
2088
"""Returns shapely geometry at plane specified by one non None value of x,y,z.
2118
2089
@@ -2698,10 +2669,7 @@ def bounds(self) -> Bound:
2698
2669
return (tuple (vertices .min (axis = 1 )), tuple (vertices .max (axis = 1 )))
2699
2670
2700
2671
def intersections_tilted_plane (
2701
- self ,
2702
- normal : Coordinate ,
2703
- origin : Coordinate ,
2704
- to_2D : MatrixReal4x4 ,
2672
+ self , normal : Coordinate , origin : Coordinate , to_2D : MatrixReal4x4
2705
2673
) -> list [Shapely ]:
2706
2674
"""Return a list of shapely geometries at the plane specified by normal and origin.
2707
2675
@@ -3010,10 +2978,7 @@ def _bit_operation(self) -> Callable[[Any, Any], Any]:
3010
2978
return result
3011
2979
3012
2980
def intersections_tilted_plane (
3013
- self ,
3014
- normal : Coordinate ,
3015
- origin : Coordinate ,
3016
- to_2D : MatrixReal4x4 ,
2981
+ self , normal : Coordinate , origin : Coordinate , to_2D : MatrixReal4x4
3017
2982
) -> list [Shapely ]:
3018
2983
"""Return a list of shapely geometries at the plane specified by normal and origin.
3019
2984
@@ -3043,10 +3008,7 @@ def intersections_tilted_plane(
3043
3008
)
3044
3009
3045
3010
def intersections_plane (
3046
- self ,
3047
- x : Optional [float ] = None ,
3048
- y : Optional [float ] = None ,
3049
- z : Optional [float ] = None ,
3011
+ self , x : Optional [float ] = None , y : Optional [float ] = None , z : Optional [float ] = None
3050
3012
) -> list [Shapely ]:
3051
3013
"""Returns list of shapely geometries at plane specified by one non-None value of x,y,z.
3052
3014
@@ -3230,10 +3192,7 @@ def bounds(self) -> Bound:
3230
3192
)
3231
3193
3232
3194
def intersections_tilted_plane (
3233
- self ,
3234
- normal : Coordinate ,
3235
- origin : Coordinate ,
3236
- to_2D : MatrixReal4x4 ,
3195
+ self , normal : Coordinate , origin : Coordinate , to_2D : MatrixReal4x4
3237
3196
) -> list [Shapely ]:
3238
3197
"""Return a list of shapely geometries at the plane specified by normal and origin.
3239
3198
@@ -3260,10 +3219,7 @@ def intersections_tilted_plane(
3260
3219
]
3261
3220
3262
3221
def intersections_plane (
3263
- self ,
3264
- x : Optional [float ] = None ,
3265
- y : Optional [float ] = None ,
3266
- z : Optional [float ] = None ,
3222
+ self , x : Optional [float ] = None , y : Optional [float ] = None , z : Optional [float ] = None
3267
3223
) -> list [Shapely ]:
3268
3224
"""Returns list of shapely geometries at plane specified by one non-None value of x,y,z.
3269
3225
0 commit comments