|
12 | 12 | from sectionproperties.pre.geometry import Geometry |
13 | 13 | from sectionproperties.pre.library.primitive_sections import circular_section_by_area |
14 | 14 | from shapely import LineString, Polygon |
15 | | -from shapely.geometry.base import GeometrySequence |
16 | 15 | from shapely.ops import split |
17 | 16 |
|
18 | 17 | from concreteproperties.material import Concrete |
19 | 18 |
|
20 | 19 | if TYPE_CHECKING: |
21 | 20 | import matplotlib.axes |
22 | 21 | from sectionproperties.pre.geometry import CompoundGeometry |
| 22 | + from shapely.geometry.base import GeometrySequence |
23 | 23 |
|
24 | 24 | from concreteproperties.material import Material, SteelBar, SteelStrand |
25 | 25 |
|
@@ -206,10 +206,6 @@ def split_section( |
206 | 206 | polys = [self.geom] |
207 | 207 |
|
208 | 208 | # sort geometries |
209 | | - if isinstance(polys, GeometrySequence): |
210 | | - msg = "Geometry split failure." |
211 | | - raise RuntimeError(msg) |
212 | | - |
213 | 209 | top_polys, bot_polys = self.sort_polys(polys=polys, point=point, vector=vector) |
214 | 210 |
|
215 | 211 | # assign material properties and create cp geometry objects |
@@ -277,7 +273,7 @@ def create_line_segment( |
277 | 273 |
|
278 | 274 | def sort_polys( |
279 | 275 | self, |
280 | | - polys: list[Polygon], |
| 276 | + polys: list[Polygon] | GeometrySequence, |
281 | 277 | point: tuple[float, float], |
282 | 278 | vector: tuple[float, float], |
283 | 279 | ) -> tuple[list[Polygon], list[Polygon]]: |
|
0 commit comments