filename_stl = tempfile()
#Save the STL file into `filename_stl`
if(rayshader:::run_documentation()) {
volcano %>%
sphere_shade() %>%
plot_3d(volcano,zscale=3)
render_snapshot()
save_3dprint(filename_stl)
}
#Save the STL file into `filename_stl`, setting maximum width to 100 mm
if(rayshader:::run_documentation()) {
volcano %>%
sphere_shade() %>%
plot_3d(volcano,zscale=3)
render_snapshot()
save_3dprint(filename_stl, maxwidth = 100)
}
#'#Save the STL file into `filename_stl`, setting maximum width to 4 inches
if(rayshader:::run_documentation()) {
volcano %>%
sphere_shade() %>%
plot_3d(volcano,zscale=3)
render_snapshot()
save_3dprint(filename_stl, maxwidth = 4, unit = "in")
}
#'#'#Save the STL file into `filename_stl`, setting maximum width (character) to 120mm
if(rayshader:::run_documentation()) {
volcano %>%
sphere_shade() %>%
plot_3d(volcano,zscale=3)
render_snapshot()
save_3dprint(filename_stl, maxwidth = "120mm")
}
Run the code above in your browser using DataLab