R Under development (unstable) (2024-03-02 r86034 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # Tests of bbox3d improvements > > library(rgl) > > x <- cube3d(col="red", front="culled", back="filled"); open3d(); shade3d(x); rglwidget() wgl 1 > > open3d();points3d(1:10, 11:20, 21:30); bbox3d(col="red", lit=FALSE,draw_front=TRUE); rglwidget() wgl 2 > > open3d();points3d(1:10, 11:20, 21:30); bbox3d(col="red", lit=TRUE,draw_front=TRUE); rglwidget() wgl 4 > > open3d();points3d(1:10, 11:20, 21:30); bbox3d(col="red", lit=TRUE,draw_front=TRUE, front="lines", back = "lines"); rglwidget() wgl 6 > > open3d();points3d(1:10, 11:20, 21:30); bbox3d(col="red", lit=TRUE,draw_front=TRUE, front="lines", back = "lines"); rglwidget() wgl 8 > > open3d();points3d(1:10, 11:20, 21:30); bbox3d(col="red", lit=TRUE,draw_front=TRUE, front="lines", back = "filled"); rglwidget() wgl 10 > > open3d();points3d(1:10, 11:20, 21:30); bbox3d(col="red", lit=TRUE,draw_front=FALSE, front="lines", back = "lines"); rglwidget() wgl 12 > > open3d();points3d(1:10, 11:20, 21:30); bbox3d(col="red", lit=TRUE,draw_front=FALSE, front="filled", back = "culled"); rglwidget() wgl 14 > > open3d();points3d(1:10, 11:20, 21:30); bbox3d(col="red", lit=TRUE,draw_front=FALSE, front="culled", back = "filled"); rglwidget() wgl 16 > > > open3d();points3d(1:10, 11:20, 21:30); bbox3d(col="red", lit=FALSE,draw_front=FALSE); rglwidget() wgl 18 > > open3d();points3d(1:10, 11:20, 21:30); bbox3d(col="red", lit=TRUE,draw_front=FALSE); rglwidget() wgl 20 > > example(bbox3d); rglwidget() bbox3d> open3d() wgl 22 bbox3d> points3d(rnorm(100), rnorm(100), rnorm(100)) bbox3d> bbox3d(color = c("#333377", "black"), emission = "#333377", bbox3d+ specular = "#3333FF", shininess = 5, alpha = 0.8) > > open3d(); spheres3d(rnorm(10), rnorm(10), rnorm(10), wgl 24 + radius = runif(10), color = rainbow(10)); rglwidget() > > open3d(); spheres3d(rnorm(10), rnorm(10), rnorm(10), wgl 25 + radius = runif(10), color = rainbow(10), + front = "lines", back="culled"); rglwidget() > > proc.time() user system elapsed 1.95 0.42 2.39