xy_rect_mesh {rayvertex} | R Documentation |
XY Rectangle 3D Model
Description
XY Rectangle 3D Model
Usage
xy_rect_mesh(
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),
material = material_list()
)
Arguments
position |
Default |
scale |
Default |
angle |
Default |
pivot_point |
Default |
order_rotation |
Default |
material |
Default |
Value
List describing the mesh.
Examples
if(run_documentation()) {
generate_cornell_mesh() |>
add_shape(xy_rect_mesh(position = c(555/2, 100, 555/2), scale=200,
material = material_list(diffuse = "purple"),angle=c(0,180,0))) |>
rasterize_scene(light_info = directional_light(c(0,0.5,-1)))
}
if(run_documentation()) {
#Rotate the plane and scale
generate_cornell_mesh() |>
add_shape(xy_rect_mesh(position = c(555/2, 100, 555/2), scale=c(200,100,1), angle=c(0,180,0),
material = material_list(diffuse = "purple"))) |>
rasterize_scene(light_info = directional_light(c(0,0.5,-1)))
}
[Package rayvertex version 0.11.4 Index]