tkspin3d: Create TCL/TK controller for rgl window

Description Usage Arguments Author(s) See Also Examples

View source: R/tkspin3d.R

Description

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

Usage

1
tkspin3d(dev = cur3d(), ...)

Arguments

dev

A vector of one or more rgl device numbers to control

...

Named parameters in that match named formal arguments to tkspinControl are passed there, while others are passed to tktoplevel

Author(s)

Ming Chen and Duncan Murdoch

See Also

tkspinControl

Examples

1
2
3
4
5
6
7
if (interactive()) {
    open3d()
    points3d(rnorm(100), rnorm(100), rnorm(100), size=3)
    axes3d()
    box3d()
    tkspin3d()
}

Example output

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

rgl documentation built on Feb. 1, 2021, 3:01 a.m.