Skip to content
Prev 156300 / 398506 Next

rgl: How to position a window during open3d call

On 9/17/2008 1:13 PM, Koen Stegen wrote:
Looks like a bug.  The open3d function is defined as

 > open3d
function (..., params = get("r3dDefaults", envir = .GlobalEnv))
{
     rgl.open()
     clear3d("material", defaults = params)
     params$material <- NULL
     if (!is.null(params$bg)) {
         do.call("bg3d", params$bg)
         params$bg <- NULL
     }
     do.call("par3d", params)
     return(rgl.cur())
}
<environment: namespace:rgl>


and you'll notice that the ... parameters are never used.  Not sure when 
this error crept in...

The workaround is simply to use par3d() after open3d().

Duncan Murdoch