# 3D Visualization Using OpenGL

## Documentation for package ‘rgl’ version 0.95.1247

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Code demos. Use demo() to run them.
- Package NEWS.

## Help Pages

A B C D E G H I L M N O P Q R S T U V W misc

rgl-package | 3D visualization device system

## -- A --

abclines3d | Lines intersecting the bounding box
addNormals | Add normal vectors to objects so they render more smoothly.
addNormals.mesh3d | Add normal vectors to objects so they render more smoothly.
addNormals.shapelist3d | Add normal vectors to objects so they render more smoothly.
addToSubscene3d | Create, select or modify a subscene.
ageSetter | Set WebGL scene properties based on the age of components of objects.
asEuclidean | Work with homogeneous coordinates
asHomogeneous | Work with homogeneous coordinates
aspect3d | Set the aspect ratios of the current plot
axes3d | Draw boxes, axes and other text outside the data
axis3d | Draw boxes, axes and other text outside the data

## -- B --

bbox3d | Set up Bounding Box decoration
bg3d | Set up Background
bgplot3d | Use base graphics for RGL background
box3d | Draw boxes, axes and other text outside the data

## -- C --

clear3d | scene management
clearSubsceneList | Set up multiple figure layouts in rgl.
clipplanes3d | add planes
clipplaneSlider | Write HTML/Javascript code to control a WebGL display.
cube3d | 3D Mesh objects
cuboctahedron3d | 3D Mesh objects
currentSubscene3d | Create, select or modify a subscene.
cylinder3d | Create cylindrical or "tube" plots.

## -- D --

decorate3d | 3D Scatterplot
deform.mesh3d | generic subdivision surface method
delFromSubscene3d | Create, select or modify a subscene.
divide.mesh3d | generic subdivision surface method
dodecahedron3d | 3D Mesh objects
dot3d | 3D Mesh objects
dot3d.mesh3d | 3D Mesh objects
dot3d.qmesh3d | 3D Mesh objects

## -- E --

ellipse3d | Make an ellipsoid
ellipse3d.default | Make an ellipsoid
ellipse3d.glm | Make an ellipsoid
ellipse3d.lm | Make an ellipsoid
ellipse3d.nls | Make an ellipsoid
extrude3d | Generate extrusion mesh

## -- G --

gc3d | Create, select or modify a subscene.
getr3dDefaults | Set or Query RGL Parameters
GramSchmidt | The Gram-Schmidt algorithm
grid3d | Add a grid to a 3D plot

## -- H --

hook_rgl | Hook functions to use with 'knitr'
hook_webgl | Hook functions to use with 'knitr'

## -- I --

icosahedron3d | 3D Mesh objects
identify3d | Identify points in plot.
identityMatrix | Work with homogeneous coordinates

## -- L --

layout3d | Set up multiple figure layouts in rgl.
legend3d | Use base graphics for RGL background
light3d | add light source
lines3d | add primitive set shape

## -- M --

material3d | Generic Appearance setup
matrices | Work with homogeneous coordinates
mesh3d | 3D Mesh objects
mfrow3d | Set up multiple figure layouts in rgl.
movie3d | Play animation of rgl scene
mtext3d | Draw boxes, axes and other text outside the data

## -- N --

newSubscene3d | Create, select or modify a subscene.
next3d | Set up multiple figure layouts in rgl.
normalize.mesh3d | generic subdivision surface method

## -- O --

observer3d | Set the observer location.
octahedron3d | 3D Mesh objects
oh3d | 3D Mesh objects
open3d | Set or Query RGL Parameters

## -- P --

par3d | Set or Query RGL Parameters
par3dinterp | Interpolator for par3d parameters
par3dinterpSetter | Write HTML/Javascript code to control a WebGL display.
particles3d | add sprite set shape
persp3d | Surface plots
persp3d.default | Surface plots
persp3d.function | Plot a function of two variables
planes3d | add planes
play3d | Play animation of rgl scene
plot3d | 3D Scatterplot
plot3d.default | 3D Scatterplot
plot3d.function | Plot a function of two variables
plot3d.mesh3d | 3D Scatterplot
plot3d.rglobject | Saves the current scene to a variable, and displays such variables.
plot3d.rglscene | Saves the current scene to a variable, and displays such variables.
points3d | add primitive set shape
polygon3d | Triangulate and draw a polygon in three dimensions.
pop3d | scene management
print.rglobject | Saves the current scene to a variable, and displays such variables.
print.rglscene | Saves the current scene to a variable, and displays such variables.
propertySetter | Write HTML/Javascript code to control a WebGL display.
propertySlider | Write HTML/Javascript code to control a WebGL display.

## -- Q --

qmesh3d | 3D Mesh objects
quads3d | add primitive set shape

## -- R --

r3d | Generic 3D interface
r3dDefaults | Set or Query RGL Parameters
readOBJ | Write Wavefront OBJ format files; read simple ones
readSTL | Read and write STL (stereolithography) format files
rgl | 3D visualization device system
rgl.abclines | Lines intersecting the bounding box
rgl.antialias | 3D visualization device system
rgl.attrib | Get information about shapes
rgl.attrib.count | Get information about shapes
rgl.bbox | Set up Bounding Box decoration
rgl.bg | Set up Background
rgl.bringtotop | Assign focus to an RGL window
rgl.clear | scene management
rgl.clipplanes | add planes
rgl.close | 3D visualization device system
rgl.cur | 3D visualization device system
rgl.dev.list | 3D visualization device system
rgl.getMouseCallbacks | User callbacks on mouse events
rgl.getWheelCallback | User callbacks on mouse events
rgl.ids | scene management
rgl.init | 3D visualization device system
rgl.light | add light source
rgl.lines | add primitive set shape
rgl.linestrips | add primitive set shape
rgl.material | Generic Appearance setup
rgl.open | 3D visualization device system
rgl.pixels | Extract pixel information from window
rgl.planes | add planes
rgl.points | add primitive set shape
rgl.pop | scene management
rgl.postscript | export screenshot
rgl.primitive | add primitive set shape
rgl.projection | Convert between rgl user and window coordinates
rgl.quads | add primitive set shape
rgl.quit | 3D visualization device system
rgl.select | Switch to select mode, and return the mouse position selected.
rgl.select3d | Select a rectangle in an RGL scene
rgl.set | 3D visualization device system
rgl.setMouseCallbacks | User callbacks on mouse events
rgl.setWheelCallback | User callbacks on mouse events
rgl.snapshot | export screenshot
rgl.spheres | add sphere set shape
rgl.sprites | add sprite set shape
rgl.surface | add height-field surface shape
rgl.Sweave | Integrating 'rgl' with 'Sweave'
rgl.Sweave.off | Integrating 'rgl' with 'Sweave'
rgl.texts | add text
rgl.triangles | add primitive set shape
rgl.useNULL | Report default use of null device.
rgl.user2window | Convert between rgl user and window coordinates
rgl.viewpoint | Set up viewpoint
rgl.window2user | Convert between rgl user and window coordinates
rglFonts | add text
rglobject-class | Saves the current scene to a variable, and displays such variables.
rglscene-class | Saves the current scene to a variable, and displays such variables.
rotate3d | Work with homogeneous coordinates
rotationMatrix | Work with homogeneous coordinates

## -- S --

scale3d | Work with homogeneous coordinates
scaleMatrix | Work with homogeneous coordinates
scene3d | Saves the current scene to a variable, and displays such variables.
segments3d | add primitive set shape
select3d | Select a rectangle in an RGL scene
selectpoints3d | Select points from a scene
shade3d | 3D Mesh objects
shade3d.mesh3d | 3D Mesh objects
shade3d.qmesh3d | 3D Mesh objects
shape3d | 3D Mesh objects
shapelist3d | Create and plot a list of shapes
snapshot3d | export screenshot
spheres3d | add sphere set shape
spin3d | Create a function to spin a scene at a fixed rate
sprites3d | add sprite set shape
subdivision3d | generic subdivision surface method
subdivision3d.mesh3d | generic subdivision surface method
subscene3d | Create, select or modify a subscene.
subsceneInfo | Get information on subscenes
subsceneList | Set up multiple figure layouts in rgl.
subsetSetter | Write HTML/Javascript code to control a WebGL display.
subsetSlider | Write HTML/Javascript code to control a WebGL display.
surface3d | add height-field surface shape
Sweave.snapshot | Integrating 'rgl' with 'Sweave'

## -- T --

terrain3d | add height-field surface shape
tetrahedron3d | 3D Mesh objects
text3d | add text
texts3d | add text
title3d | Draw boxes, axes and other text outside the data
tmesh3d | 3D Mesh objects
toggleButton | Write HTML/Javascript code to control a WebGL display.
transform3d | Work with homogeneous coordinates
translate3d | Work with homogeneous coordinates
translationMatrix | Work with homogeneous coordinates
triangles3d | add primitive set shape
triangulate | Triangulate a two-dimensional polygon.
turn3d | Create a solid of rotation from a two-dimensional curve.

## -- U --

useSubscene3d | Create, select or modify a subscene.

## -- V --

view3d | Set up viewpoint

## -- W --

wire3d | 3D Mesh objects
wire3d.mesh3d | 3D Mesh objects
wire3d.qmesh3d | 3D Mesh objects
writeOBJ | Write Wavefront OBJ format files; read simple ones
writePLY | Write Stanford PLY format files
writeSTL | Read and write STL (stereolithography) format files
writeWebGL | Write scene to HTML.

## -- misc --

.check3d | Check for an open rgl window.