Learn R Programming

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

rgl (version 0.94.1131)

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

97,631

Version

0.94.1131

License

GPL

Maintainer

Duncan Murdoch

Last Published

September 8th, 2014

Functions in rgl (0.94.1131)

readSTL

Read and write STL (stereolithography) format files
par3dinterp

Interpolator for par3d parameters
writeWebGL

Write scene to HTML.
subsceneInfo

Get information on subscenes
rgl.material

Generic Appearance setup
ellipse3d

Make an ellipsoid
rgl.primitive

add primitive set shape
selectpoints3d

Select points from a scene
writePLY

Write Stanford PLY format files
rgl.surface

add height-field surface shape
grid3d

Add a grid to a 3D plot
plot3d

3D Scatterplot
shapelist3d

Create and plot a list of shapes
turn3d

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

Set up Background
axes3d

Draw boxes, axes and other text outside the data
rgl.open

3D visualization device system
writeOBJ

Write Wavefront OBJ format files
abclines3d

Lines intersecting the bounding box
rgl.snapshot

export screenshot
extrude3d

Generate extrusion mesh
scene3d

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

scene management
.check3d

Check for an open rgl window.
rgl-package

3D visualization device system
cylinder3d

Create cylindrical or "tube" plots.
par3d

Set or Query RGL Parameters
polygon3d

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

export screenshot
spheres3d

add sphere set shape
triangulate

Triangulate a two-dimensional polygon.
subscene3d

Create, select or modify a subscene.
rgl.attrib

Get information about shapes
matrices

Work with homogeneous coordinates
observer3d

Set the observer location.
rgl.bringtotop

Assign focus to an RGL window
play3d

Play animation of rgl scene
r3d

Generic 3D interface
rgl-internal

Internal rgl functions and data
surface3d

add height-field surface shape
spin3d

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

add light source
persp3d

Surface plots
mesh3d

3D Mesh objects
points3d

add primitive set shape
rgl.bbox

Set up Bounding Box decoration
identify3d

Identify points in plot.
rgl.pixels

Extract pixel information from window
rgl.select

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

Set up multiple figure layouts in rgl.
text3d

add text
rgl.useNULL

Report default use of null device.
subdivision3d

generic subdivision surface method
viewpoint

Set up viewpoint
aspect3d

Set the aspect ratios of the current plot
addNormals

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

add planes
sprites

add sprite set shape
rgl.user2window

Convert between rgl user and window coordinates
rgl.setMouseCallbacks

User callbacks on mouse events
rgl.Sweave

Integrating rgl with Sweave
select3d

Select a rectangle in an RGL scene