Creating a "scene" with plot3d or point3d

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Creating a "scene" with plot3d or point3d

cgenolin
Hi the list,

As far as I understand, a possibility to create a "scene" is to provide a list of triangles to the function makeTriangles. Is there also a way to turn the data that are used by "plot3d" into a scene? I would like to write:

--- 8< ---------
M <- matrix(runif(12),4)
plot3d(M)

### Some secretes operations that turn M into a Mscene
Mscene <- turn.M.into.Scene(M)

drawScene(Mscene)
--- 8< ---------
Any idea?

Thanks
Christophe