rgl.points(x, y = NULL, z = NULL, ... )
rgl.lines(x, y = NULL, z = NULL, ... )
rgl.linestrips(x, y = NULL, z = NULL, ...)
rgl.triangles(x, y = NULL, z = NULL, ... )
rgl.quads(x, y = NULL, z = NULL, ... )
Arguments
x, y, z
coordinates. Any reasonable way of defining the
coordinates is acceptable. See the function xyz.coords
for details.
...
Material properties. See rgl.material for details.
Value
Each primitive function returns the integer object ID of the shape that
was added to the scene. These can be passed to rgl.pop
to remove the object from the scene.
Details
Adds a shape node to the scene. The appearance is defined by the material properties.
See rgl.material for details.