Learn R Programming

⚠️There's a newer version (1.3.18) of this package.Take me there.

rgl (version 0.95.1337)

3D Visualization Using OpenGL

Description

Provides medium to high level functions for 3D interactive graphics, including functions modelled on base graphics (plot3d(), etc.) as well as functions for constructing representations of geometric objects (cube3d(), etc.). Output may be on screen using OpenGL, or to various standard 3D file formats including WebGL, PLY, OBJ, STL as well as 2D image formats, including PNG, Postscript, SVG, PGF.

Copy Link

Version

Install

install.packages('rgl')

Monthly Downloads

94,332

Version

0.95.1337

License

GPL

Maintainer

Duncan Murdoch

Last Published

September 19th, 2015

Functions in rgl (0.95.1337)

rgl-internal

Internal rgl functions and data
persp3d

Surface plots
rgl.bbox

Set up Bounding Box decoration
planes3d

add planes
rgl.Sweave

Integrating rgl with Sweave
polygon3d

Triangulate and draw a polygon in three dimensions.
mesh3d

3D Mesh objects
subsceneInfo

Get information on subscenes
rgl.primitive

add primitive set shape
rgl.postscript

export screenshot
rgl.setMouseCallbacks

User callbacks on mouse events
hook_rgl

Hook functions to use with knitr
selectpoints3d

Select points from a scene
select3d

Select a rectangle in an RGL scene
identify3d

Identify points in plot.
spheres3d

add sphere set shape
sprites

add sprite set shape
propertySetter

Write HTML/Javascript code to control a WebGL display.
abclines3d

Lines intersecting the bounding box
rgl.material

Generic Appearance setup
rgl.attrib

Get information about shapes
light

add light source
ellipse3d

Make an ellipsoid
observer3d

Set the observer location.
rgl.snapshot

export screenshot
aspect3d

Set the aspect ratios of the current plot
cylinder3d

Create cylindrical or "tube" plots.
addNormals

Add normal vectors to objects so they render more smoothly.
r3d

Generic 3D interface
rgl.surface

add height-field surface shape
rgl.select

Switch to select mode, and return the mouse position selected.
readSTL

Read and write STL (stereolithography) format files
extrude3d

Generate extrusion mesh
spin3d

Create a function to spin a scene at a fixed rate
play3d

Play animation of rgl scene
mfrow3d

Set up multiple figure layouts in rgl.
rgl.open

3D visualization device system
par3d

Set or Query RGL Parameters
plot3d

3D Scatterplot
writePLY

Write Stanford PLY format files
persp3d.function

Plot a function of two variables
shapelist3d

Create and plot a list of shapes
webGLcontrols

Write HTML/Javascript code to control a WebGL display.
GramSchmidt

The Gram-Schmidt algorithm
bg3d

Set up Background
scene3d

Saves the current scene to a variable, and displays such variables.
triangulate

Triangulate a two-dimensional polygon.
scene

scene management
rgl.useNULL

Report default use of null device.
par3dinterp

Interpolator for par3d parameters
rgl.user2window

Convert between rgl user and window coordinates
surface3d

add height-field surface shape
ageSetter

Set WebGL scene properties based on the age of components of objects.
.check3d

Check for an open rgl window.
writeWebGL

Write scene to HTML.
subdivision3d

generic subdivision surface method
rgl.pixels

Extract pixel information from window
rgl-package

3D visualization device system
subscene3d

Create, select or modify a subscene.
text3d

add text
writeOBJ

Write Wavefront OBJ format files; read simple ones
viewpoint

Set up viewpoint
matrices

Work with homogeneous coordinates
axes3d

Draw boxes, axes and other text outside the data
points3d

add primitive set shape
turn3d

Create a solid of rotation from a two-dimensional curve.
bgplot3d

Use base graphics for RGL background
grid3d

Add a grid to a 3D plot
rgl.bringtotop

Assign focus to an RGL window