Learn R Programming

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

rgl (version 0.94.1143)

3D visualization device system (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.94.1143

License

GPL

Maintainer

Duncan Murdoch

Last Published

September 30th, 2014

Functions in rgl (0.94.1143)

observer3d

Set the observer location.
par3d

Set or Query RGL Parameters
light

add light source
play3d

Play animation of rgl scene
readSTL

Read and write STL (stereolithography) format files
subscene3d

Create, select or modify a subscene.
bg3d

Set up Background
grid3d

Add a grid to a 3D plot
rgl.surface

add height-field surface shape
rgl.setMouseCallbacks

User callbacks on mouse events
points3d

add primitive set shape
rgl.useNULL

Report default use of null device.
persp3d

Surface plots
triangulate

Triangulate a two-dimensional polygon.
rgl.user2window

Convert between rgl user and window coordinates
rgl.primitive

add primitive set shape
writeWebGL

Write scene to HTML.
extrude3d

Generate extrusion mesh
rgl.material

Generic Appearance setup
subdivision3d

generic subdivision surface method
r3d

Generic 3D interface
matrices

Work with homogeneous coordinates
rgl.open

3D visualization device system
rgl.select

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

Select points from a scene
writePLY

Write Stanford PLY format files
rgl.bbox

Set up Bounding Box decoration
cylinder3d

Create cylindrical or "tube" plots.
rgl.attrib

Get information about shapes
persp3d.function

Plot a function of two variables
writeOBJ

Write Wavefront OBJ format files
spheres3d

add sphere set shape
.check3d

Check for an open rgl window.
rgl.snapshot

export screenshot
text3d

add text
addNormals

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

Lines intersecting the bounding box
axes3d

Draw boxes, axes and other text outside the data
ellipse3d

Make an ellipsoid
sprites

add sprite set shape
rgl.pixels

Extract pixel information from window
viewpoint

Set up viewpoint
rgl-internal

Internal rgl functions and data
scene

scene management
plot3d

3D Scatterplot
scene3d

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

add height-field surface shape
select3d

Select a rectangle in an RGL scene
aspect3d

Set the aspect ratios of the current plot
identify3d

Identify points in plot.
polygon3d

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

Assign focus to an RGL window
par3dinterp

Interpolator for par3d parameters
rgl.postscript

export screenshot
turn3d

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

3D Mesh objects
planes3d

add planes
rgl.Sweave

Integrating rgl with Sweave
shapelist3d

Create and plot a list of shapes
rgl-package

3D visualization device system
subsceneInfo

Get information on subscenes
spin3d

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

Set up multiple figure layouts in rgl.