| as.rglscene.gltf {rgl2gltf} | R Documentation | 
Convert a glTF object to an rglscene or mesh3d object.
Description
These methods convert a "gltf" object to
a "rglscene" object, similar to what scene3d
would produce, or a "mesh3d" object.
Usage
## S3 method for class 'gltf'
as.rglscene(x, scene = x$scene, nodes = NULL,
         useRGLinfo = TRUE, time = NULL, ani = 0, clone = TRUE,
         quick = FALSE, add = FALSE, ...)
## S3 method for class 'gltf'
as.mesh3d(x, ...)
Arguments
| x | The  | 
| scene | Which scene to convert?  If  | 
| nodes | Which nodes to convert? If  | 
| useRGLinfo | 
 | 
| time | Set the "time" within an animation. | 
| ani | Animation number to use. | 
| clone | Whether to clone the  | 
| quick | If  | 
| add | If  | 
| ... | 
 | 
Details
These functions need to modify the glTF object, caching
some information to help with the conversion.  By default
they do this on a cloned copy of it, and the original is
left unchanged.  If the object has already been cloned
this can be skipped by setting clone = FALSE.
Value
An "rglscene" object.