These functions give information about the attributes of
RGL objects. rgl.attrib.info
is the more
“user-friendly” function; rgl.attrib.count
is a
lower-level function more likely to be used in programming.
rgl.attrib.info(id = ids3d("all", 0)$id, attribs = NULL, showAll = FALSE)
rgl.attrib.count(id, attrib)
A dataframe containing the following columns:
The id of the object.
The full name of the attribute.
The size of matrix that would be returned
by rgl.attrib
for this attribute.
One or more RGL object ids.
A character vector of one or more attribute names.
Should attributes with zero entries be shown?
A single attribute name.
Duncan Murdoch
See the first example below to get the full list of attribute names.
rgl.attrib
to obtain the attribute values.
open3d()
id <- points3d(rnorm(100), rnorm(100), rnorm(100), col = "green")
rgl.attrib.info(id, showAll = TRUE)
rgl.attrib.count(id, "vertices")
merge(rgl.attrib.info(), ids3d("all"))
Run the code above in your browser using DataLab