8000 pass pose through to renderer · RedCarp0/spatialmath-python@c1d7d6b · GitHub
[go: up one dir, main page]

Skip to content < 10000 react-partial partial-name="keyboard-shortcuts-dialog" data-ssr="false" data-attempted-ssr="false" data-react-profiling="false" >

Commit c1d7d6b

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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, **< 5EAF /span>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)
0