spin3d: Create TCL/TK controller for rgl window

Description Usage Arguments Author(s) See Also Examples

View source: R/spin3d.R

Description

This function creates a TCL/TK window containing buttons to spin and resize one or more rgl windows.

Usage

1
spin3d(dev = rgl.cur(), ...)

Arguments

dev

A vector of one or more rgl device numbers to control

...

Arguments to pass to spinControl

Author(s)

Ming Chen and Duncan Murdoch

See Also

spinControl

Examples

1
2
3
4
5
6
7
8
9
if (interactive()) {
    library(rgl)
    open3d()
    rgl.bringtotop(TRUE)
    points3d(rnorm(100), rnorm(100), rnorm(100), size=3)
    axes3d()
    box3d()
    tkrgl::spin3d()  # rgl also has a function called spin3d!
}

tkrgl documentation built on May 16, 2018, 5:04 p.m.