Re: [R] rgl vertices

2009-06-10 Thread Duncan Murdoch
On 6/10/2009 1:44 PM, kapo coulibaly wrote: I'm trying to make sense of the following example in the package rgl: vertices <- c( -1.0, -1.0, 0, 1.0, 1.0, -1.0, 0, 1.0, 1.0, 1.0, 0, 1.0, -1.0, 1.0, 0, 1.0 ) indices <- c( 1, 2, 3, 4 ) open3d() wire3d( qmesh3d(vert

[R] rgl vertices

2009-06-10 Thread kapo coulibaly
I'm trying to make sense of the following example in the package rgl: vertices <- c( -1.0, -1.0, 0, 1.0, 1.0, -1.0, 0, 1.0, 1.0, 1.0, 0, 1.0, -1.0, 1.0, 0, 1.0 ) indices <- c( 1, 2, 3, 4 ) open3d() wire3d( qmesh3d(vertices,indices) ) One would think that each vert