The scene3d
function returns an object of class
"rglscene"
. This is a list with some or all of the components:
materialThe results returned from a material3d
call.
rootSubsceneA list containing information about
the main ("root") subscene. This may include:
- id
The scene id.
- type
"subscene"
- par3d
The par3d
settings for the
subscene.
- embeddings
The subsceneInfo()$embeddings
for the main subscene.
- objects
The ids for objects in the subscene.
- subscenes
A recursive list of child subscenes.
objectsA list containing the RGL lights, background and objects in the scene.
The objects in the objects component are of class
"rglobject". They are lists containing some or all of the
components
idThe RGL identifier of the object in the original scene.
typeA character variable identifying the type of object.
materialComponents of the material that differ from the scene material.
vertices, normals, etc.Any of the attributes of the object retrievable by rgl.attrib
.
ignoreExtentA logical value indicating whether this object contributes to the bounding box.
Currently this may differ from the object in the original scene.
objectsSprites may contain other objects; they will be stored here as a list of "rglobject"
s.
Lights in the scene are stored similarly, mixed into the objects list.
The plot3d methods invisibly return a vector of RGL object ids
that were plotted. The print methods invisibly return the
object that was printed.