Skip to content

Commit c1d7d6b

Browse files
committed
pass pose through to renderer
1 parent 0111d5b commit c1d7d6b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎spatialmath/base/graphics.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,10 +1216,11 @@ def plot_cylinder(
12161216
handles = []
12171217
handles.append(_render3D(ax, X, Y, Z, filled=filled, **kwargs))
12181218
handles.append(
1219-
_render3D(ax, X, (2 * centre[1] - Y), Z, filled=filled, **kwargs)
1219+
_render3D(ax, X, (2 * centre[1] - Y), Z, filled=filled, pose=pose, **kwargs)
12201220
)
12211221

12221222
if ends and kwargs.get("filled", default=False):
1223+
# TODO: this should handle the pose argument, zdir can be a 3-tuple
12231224
floor = Circle(centre[:2], radius, **kwargs)
12241225
handles.append(ax.add_patch(floor))
12251226
pathpatch_2d_to_3d(floor, z=height[0], zdir="z")

0 commit comments

Comments
 (0)