Learn R Programming

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

rgl (version 0.95.1435)

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

78,983

Version

0.95.1435

License

GPL

Maintainer

Duncan Murdoch

Last Published

December 28th, 2015

Functions in rgl (0.95.1435)

grid3d

Add a grid to a 3D plot
rgl.bringtotop

Assign focus to an RGL window
par3dinterp

Interpolator for par3d parameters
scene

scene management
selectpoints3d

Select points from a scene
rgl.open

3D visualization device system
persp3d

Surface plots
polygon3d

Triangulate and draw a polygon in three dimensions.
rgl.Sweave

Integrating rgl with Sweave
planes3d

add planes
sprites

add sprite set shape
triangulate

Triangulate a two-dimensional polygon.
rgl.postscript

export screenshot
webGLcontrols

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

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

Play animation of rgl scene
rgl.snapshot

export screenshot
mfrow3d

Set up multiple figure layouts in rgl.
spin3d

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

Draw a 2D plot on a rectangle in a 3D scene.
abclines3d

Lines intersecting the bounding box
bg3d

Set up Background
writePLY

Write Stanford PLY format files
GramSchmidt

The Gram-Schmidt algorithm
rgl.select

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

User callbacks on mouse events
rgl-internal

Internal rgl functions and data
rgl.primitive

add primitive set shape
propertySetter

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

Write Wavefront OBJ format files; read simple ones
shapelist3d

Create and plot a list of shapes
persp3d.function

Plot a function of two variables
rgl.surface

add height-field surface shape
rgl.useNULL

Report default use of null device.
rgl.attrib

Get information about shapes
bgplot3d

Use base graphics for RGL background
rgl.pixels

Extract pixel information from window
ellipse3d

Make an ellipsoid
aspect3d

Set the aspect ratios of the current plot
light

add light source
surface3d

add height-field surface shape
text3d

add text
points3d

add primitive set shape
rgl-package

3D visualization device system
hook_rgl

Hook functions to use with knitr
plot3d

3D Scatterplot
scene3d

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

Identify points in plot.
ageSetter

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

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

Draw boxes, axes and other text outside the data
mesh3d

3D Mesh objects
spheres3d

add sphere set shape
cylinder3d

Create cylindrical or "tube" plots.
select3d

Select a rectangle in an RGL scene
observer3d

Set the observer location.
viewpoint

Set up viewpoint
writeWebGL

Write scene to HTML.
par3d

Set or Query RGL Parameters
r3d

Generic 3D interface
subscene3d

Create, select or modify a subscene.
rgl.bbox

Set up Bounding Box decoration
matrices

Work with homogeneous coordinates
.check3d

Check for an open rgl window.
rgl.user2window

Convert between rgl user and window coordinates
subdivision3d

generic subdivision surface method
readSTL

Read and write STL (stereolithography) format files
subsceneInfo

Get information on subscenes
rgl.material

Generic Appearance setup
extrude3d

Generate extrusion mesh