From 84c5b804bd54c659c46c759740c7609439038873 Mon Sep 17 00:00:00 2001 From: Jien Cao Date: Fri, 27 Sep 2024 10:34:09 -0400 Subject: [PATCH] collection of bug fixes: [Issue-136], [Issue-137], github worker --- spatialmath/base/graphics.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spatialmath/base/graphics.py b/spatialmath/base/graphics.py index 2ce18dc8..c51d7f94 100644 --- a/spatialmath/base/graphics.py +++ b/spatialmath/base/graphics.py @@ -982,7 +982,7 @@ def plot_sphere( handles = [] for c in centre.T: X, Y, Z = sphere(centre=c, radius=radius, resolution=resolution) - handles.append(_render3D(ax, X, Y, Z, **kwargs)) + handles.append(_render3D(ax, X, Y, Z, pose=pose, **kwargs)) return handles @@ -1214,7 +1214,7 @@ def plot_cylinder( ) # Pythagorean theorem handles = [] - handles.append(_render3D(ax, X, Y, Z, filled=filled, **kwargs)) + handles.append(_render3D(ax, X, Y, Z, filled=filled, pose=pose, **kwargs)) handles.append( _render3D(ax, X, (2 * centre[1] - Y), Z, filled=filled, pose=pose, **kwargs) ) @@ -1298,9 +1298,9 @@ def plot_cone( Z = height - Z handles = [] - handles.append(_render3D(ax, X, Y, Z, filled=filled, **kwargs)) + handles.append(_render3D(ax, X, Y, Z, pose=pose, filled=filled, **kwargs)) handles.append( - _render3D(ax, X, (2 * centre[1] - Y), Z, filled=filled, **kwargs) + _render3D(ax, X, (2 * centre[1] - Y), Z, pose=pose, filled=filled, **kwargs) ) if ends and kwargs.get("filled", default=False):