Learn R Programming

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

rgl (version 0.97.0)

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

84,310

Version

0.97.0

License

GPL

Maintainer

Duncan Murdoch

Last Published

January 10th, 2017

Functions in rgl (0.97.0)

abclines3d

Lines intersecting the bounding box
bg3d

Set up Background
points3d

add primitive set shape
aspect3d

Set the aspect ratios of the current plot
rgl.bbox

Set up Bounding Box decoration
ageControl

Set attributes of vertices based on their age.
addNormals

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

Use base graphics for RGL background
axes3d

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

Get information about shapes
.check3d

Check for an open rgl window.
rgl.setMouseCallbacks

User callbacks on mouse events
cylinder3d

Create cylindrical or "tube" plots.
clipplaneControl

Sets attributes of a clipping plane.
hook_rgl

Hook functions to use with knitr
extrude3d

Generate extrusion mesh
grid3d

Add a grid to a 3D plot
GramSchmidt

The Gram-Schmidt algorithm
elementId2Prefix

Use widget with old-style controls.
ellipse3d

Make an ellipsoid
identify3d

Identify points in plot.
import

Imported from magrittr
rgl.attrib.info

Get information about attributes of objects
rgl.bringtotop

Assign focus to an RGL window
play3d

Play animation of rgl scene
plot3d

3D Scatterplot
matrices

Work with homogeneous coordinates
light

add light source
planes3d

add planes
persp3d

Surface plots
readSTL

Read and write STL (stereolithography) format files
r3d

Generic 3D interface
select3d

Select a rectangle in an RGL scene
selectpoints3d

Select points from a scene
webGLcontrols

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

add sprite set shape
spin3d

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

Write Asymptote code for an rgl scene
rgl.postscript

export screenshot
rgl.primitive

add primitive set shape
rgl.open

3D visualization device system
rgl.pixels

Extract pixel information from window
rglIds

rgl id values
rgl.user2window

Convert between rgl user and window coordinates
shiny

show2d

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

Write Wavefront OBJ format files; read simple ones
writePLY

Write Stanford PLY format files
setUserShaders

Set user-defined shaders for rgl objects.
shapelist3d

Create and plot a list of shapes
surface3d

add height-field surface shape
rgl.surface

add height-field surface shape
pch3d

Plot symbols similar to base graphics.
par3dinterp

Interpolator for par3d parameters
persp3d.function

Plot a function of two variables
rgl-package

3D visualization device system
rgl-internal

Internal rgl functions and data
persp3d.deldir

Plot a Delaunay triangulation.
observer3d

Set the observer location.
par3d

Set or Query RGL Parameters
plotmath3d

Generate sprites using base graphics math plotting.
polygon3d

Triangulate and draw a polygon in three dimensions.
propertyControl

Controls to use with playwidget().
mesh3d

3D Mesh objects
propertySetter

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

Set up multiple figure layouts in rgl.
sceneChange

Make large change to a scene from Shiny
scene

scene management
rgl.snapshot

export screenshot
spheres3d

add sphere set shape
rgl.useNULL

Report default use of null device.
rgl.select

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

generic subdivision surface method
text3d

add text
subscene3d

Create, select or modify a subscene.
rglToLattice

Convert rgl userMatrix to lattice or base angles
triangulate

Triangulate a two-dimensional polygon.
rglwidget

An htmlwidget to hold an rgl scene.
turn3d

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

Set attributes of vertices.