dmurdoch / rgl

rgl is a 3D visualization system based on OpenGL. It provides a medium to high level interface for use in R, currently modelled on classic R graphics, with extensions to allow for interaction.
https://dmurdoch.github.io/rgl/
GNU General Public License v2.0
84 stars 20 forks source link

sprites3d should allow different shapes for different points #406

Closed dmurdoch closed 4 months ago

dmurdoch commented 5 months ago

Currently sprites3d(..., shapes = x) allows x to be a vector of shape ids, but all shapes will be plotted at each point. It would be desirable to plot different shapes at each point, the way pch3d() can do with 2d shapes.

One way to do this would be to allow x to be a list of vectors, with each list entry treated as x is currently treated, but each point using a different list entry.