Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ numba = [
"numba>=0.60.0",
]
rhino = [
"rhino3dm==8.17.0",
"rhino3dm>=8.17.0",
"rhino-shapley-interop>=0.0.4",
]
dxf = [
Expand Down
2 changes: 1 addition & 1 deletion src/sectionproperties/analysis/fea.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ def gauss_points(*, n: int) -> npt.NDArray[np.float64]:
def __shape_function_cached(
coords: tuple[float, ...],
gauss_point: tuple[float, float, float],
) -> tuple[npt.NDArray[np.float64], npt.NDArray[np.float64], float, float, float]:
) -> tuple[npt.NDArray[np.double], npt.NDArray[np.float64], float, float, float]:
"""The cached version.

Args:
Expand Down
2 changes: 1 addition & 1 deletion src/sectionproperties/pre/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -2668,7 +2668,7 @@ def buffer_polygon(
Returns:
Buffered polygon
"""
buffered_polygon = polygon.buffer(distance=amount, resolution=resolution)
buffered_polygon = polygon.buffer(distance=amount, quad_segs=resolution)

if isinstance(buffered_polygon, GeometryCollection):
remaining_polygons = [
Expand Down
13 changes: 7 additions & 6 deletions tests/geometry/test_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def test_shift_points():
).shift_points(point_idxs=1, dy=-10)
assert (
assymetrical_chan.geom.wkt
== "POLYGON ((0 0, 75 -10, 75 16, 8 16, 8 184, 75 184, 75 200, 0 200, 0 0))"
== "POLYGON ((0 200, 75 200, 75 184, 8 184, 8 16, 75 16, 75 -10, 0 0, 0 200))"
)


Expand All @@ -553,18 +553,19 @@ def test_mirror_section():
).shift_points(point_idxs=1, dy=-10)
assert (
assymetrical_chan.mirror_section(axis="x").geom.wkt
== "POLYGON ((0 190, 75 200, 75 174, 8 174, 8 6, 75 6, 75 -10, 0 -10, 0 190))"
== "POLYGON ((0 -10, 75 -10, 75 6, 8 6, 8 174, 75 174, 75 200, 0 190, 0 -10))"
)
assert (
assymetrical_chan.mirror_section(axis="y").geom.wkt
== "POLYGON ((75 0, 0 -10, 0 16, 67 16, 67 184, 0 184, 0 200, 75 200, 75 0))"
== "POLYGON ((75 200, 0 200, 0 184, 67 184, 67 16, 0 16, 0 -10, 75 0, 75 200))"
)
p = "POLYGON ((100 0, 25 -10, 25 16, 92 16, 92 184, 25 184, 25 200, 100 200, "
p += "100 0))"
p = "POLYGON ((100 200, 25 200, 25 184, 92 184, 92 16, 25 16, 25 -10, 100 0, "
p += "100 200))"

assert (
assymetrical_chan.mirror_section(axis="y", mirror_point=(50, 50)).geom.wkt == p
)
p = "POLYGON ((0 100, 75 110, 75 84, 8 84, 8 -84, 75 -84, 75 -100, 0 -100, 0 100))"
p = "POLYGON ((0 -100, 75 -100, 75 -84, 8 -84, 8 84, 75 84, 75 110, 0 100, 0 -100))"
assert (
assymetrical_chan.mirror_section(axis="x", mirror_point=(50, 50)).geom.wkt == p
)
Expand Down
Loading