Fill area between two segments in a 3D plot {rgl}
问题 I have made a tetrahedron using vertex coordinates and line segments using the function plot3d() from the package {rgl}. The code below makes the mentioned plot library("rgl") CCl4=c(5,5,5,10) Luminol=c(0.01,0.001,0.005,0.005) Na2CO3=c(0.01,0.01,0.1,0.05) plot3d( Luminol, Na2CO3, CCl4, type = "s") for(i in 1:4){ for(k in 1:4){ segments3d(x=Luminol[c(i,k)],y=Na2CO3[c(i,k)],z=CCl4[c(i,k)]) } } Now, I want to fill the area between the points (preferably using a RGB color so I can define