obj_mesh | R Documentation |
OBJ Mesh 3D Model
obj_mesh(
filename,
position = c(0, 0, 0),
scale = c(1, 1, 1),
angle = c(0, 0, 0),
pivot_point = c(0, 0, 0),
order_rotation = c(1, 2, 3),
materialspath = NULL,
center = FALSE,
material = NULL
)
filename |
OBJ filename. |
position |
Default |
scale |
Default |
angle |
Default |
pivot_point |
Default |
order_rotation |
Default |
materialspath |
Default |
center |
Default |
material |
Default |
List describing the mesh.
if(run_documentation()) {
#Read in the provided 3D R mesh
generate_cornell_mesh(ceiling=FALSE) |>
add_shape(obj_mesh(r_obj(),position=c(555/2,555/2,555/2),scale=400,angle=c(0,180,0))) |>
rasterize_scene(light_info = directional_light(direction=c(0.2,0.5,-1)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.