showTags {rgl2gltf}R Documentation

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", ...)

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.

Value

The rgl ids of the text objects added (one text object per tagged object, with tags as names).

Examples

example("plot3d", package = "rgl")
showTags()

[Package rgl2gltf version 1.0.3 Index]