Description Usage Arguments Details Value See Also Examples
Convert the raw tinyobjloader shapes/materials list into an rgl shapelist3d
1 |
x |
A raw tinyobjloader shapes/materials list |
Not all materials settings can be processed at the moment. In particular only the following are used:
diffuse -> mapped onto rgl material color field
ambient
specular
emission
a list of class shapelist3d containing a mesh3d for
each object or group element in the original OBJ file.
read.obj, mesh3d,
shapelist3d, rgl.material
1 2 3 4 5 | cube=read.obj(system.file("obj/cube.wavefront", package = "readobj"))
if(require("rgl")){
cubesl=tinyobj2shapelist3d(cube)
shade3d(cubesl)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.