Get information on subscenes
subsceneInfo.RdThis function retrieves information about the tree of subscenes shown in the active window.
Details
In RGL, each window contains a tree of “subscenes”, each containing views of a subset of the objects defined in the window.
Rendering in each subscene depends on the viewport, the projection, and the model
transformation. Each of these characteristics may be inherited from the parent
(embedding[i] = "inherit"), may modify the parent (embedding[i] = "modify"),
or may replace the parent (embedding[i] == "replace"). All three must be
specified if embeddings is used.
Value
- id
The object id of the subscene
- parent
The object id of the parent subscene, if any
- children
If
recursive, a list of the information for the children, otherwise just their object ids.- embedding
A vector of 3 components describing how this subscene is embedded in its parent.
Examples
example(plot3d)
#>
#> plot3d> open3d()
#> null
#> 160
#>
#> plot3d> x <- sort(rnorm(1000))
#>
#> plot3d> y <- rnorm(1000)
#>
#> plot3d> z <- rnorm(1000) + atan2(x, y)
#>
#> plot3d> plot3d(x, y, z, col = rainbow(1000))
subsceneInfo()
#> $id
#> [1] 2067
#>
#> $embeddings
#> viewport projection model mouse
#> "replace" "replace" "replace" "replace"
#>