View source: R/convert_rgl_to_raymesh.R
convert_rgl_to_raymesh | R Documentation |
Converts the current RGL rayshader scene to a 'ray_mesh' object (see 'rayvertex' package for more information)
convert_rgl_to_raymesh(save_shadow = TRUE)
save_shadow |
Default 'FALSE'. If 'TRUE', this saves a plane with the shadow texture below the model. |
A 'ray_mesh' object
filename_obj = tempfile(fileext = ".obj")
#Save model of volcano
if(run_documentation()) {
volcano %>%
sphere_shade() %>%
plot_3d(volcano, zscale = 2)
rm_obj = convert_rgl_to_raymesh()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.