bwlewis / rthreejs

Three.js widgets for R and shiny
http://bwlewis.github.io/rthreejs
Other
303 stars 64 forks source link

lines3d fails if called more than once #79

Closed bwlewis closed 6 years ago

bwlewis commented 6 years ago

repro:

library(threejs)
m = cbind(x=1:10,y=1:10,z=(1:10)/((1:10)^2))
x = scatterplot3js(m)                      # 10 points
y = lines3d(x, 1, 10, lwd=5, color="blue") # plus one blue line
z = lines3d(y, 2, 10, lwd=5, color="blue") # all lines gone! (bug)