pan3d: Some useful extensions / changes to rgl defaults

Description Usage Arguments Details Author(s) See Also Examples

View source: R/neuron-plot.R

Description

Set up pan call back for current rgl device

Usage

1
pan3d(button)

Arguments

button

Integer from 1 to 3 indicating mouse button

Details

Copied verbatim from ?rgl.setMouseCallbacks for rgl version 0.92.892 Mouse button 2 is right and button 3 is middle (accessed by meta/alt key)

Note that sometimes (parts of) objects seem to disappear after panning and zooming. The example in rgl.setMouseCallbacks from which this is copied includes a note that "this doesn't play well with rescaling"

Author(s)

Duncan Murdoch

See Also

rgl.setMouseCallbacks

Examples

1
2
3
4
5
## Not run: 
 open3d()
 pan3d(2)

## End(Not run)

nat documentation built on Sept. 6, 2021, 5:09 p.m.