showTags: Debugging tool: show tags for objects in rgl scene
Description
This function uses text3d
to display the tags
at the center of the objects they label.
Usage
showTags(tags = NULL, ids = NULL,
subscenes = ids3d("subscene", subscene = 0)$id,
depth_test = "always", ...)
Value
The rgl ids of the text objects added (one text object
per tagged object, with tags as names).
Arguments
- tags, ids
If non-NULL, display only these tags and ids.
- subscenes
Which subscenes to examine.
- depth_test
The "depth_test"
material property to use on the
displayed tags. The default will put the tag in front of
everything, so it won't be obscured by other objects.
- ...
Other arguments to pass to text3d
.
Details
If selected objects don't have tags, they will be labelled
using their id
value instead.
Examples
Run this codeexample("plot3d", package = "rgl")
showTags()
Run the code above in your browser using DataLab