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
85 stars 20 forks source link

arc3d is incomplete when n is missing #369

Closed stla closed 1 year ago

stla commented 1 year ago

Hello,

When we don't set n in arc3d, the arc does not join the two points:

library(rgl)

A <- c(0, 0, 1)
B <- c(0, 1, 0)

arc3d(A, B, c(0, 0, 0), 1, lwd = 3)

points3d(rbind(A, B), size = 12)
dmurdoch commented 1 year ago

I believe this is fixed in #374. Thanks for the report!