Group Objects

group_objects(scene, pivot_point = c(0, 0, 0), group_translate = c(0,
0, 0), group_angle = c(0, 0, 0), group_order_rotation = c(1, 2, 3))

## Arguments

scene Tibble of pre-existing object locations and properties to group together. Defaults to the mean location of all the objects. The point about which to pivot and move the group. Default c(0,0,0). Vector indicating where to offset the group. Default c(0,0,0). Angle of rotation around the x, y, and z axes, applied in the order specified in order_rotation. Default c(1,2,3). The order to apply the rotations, referring to "x", "y", and "z".

## Value

Tibble of grouped object locations and properties.

## Examples

#Generate the ground and add some objects
scene = generate_cornell() %>%
samples=500, fov=50, parallel=TRUE, clamp_value=5)
#Group the entire room and rotate around its center, but keep the cube in the same place.
scene2 = group_objects(generate_cornell(),
pivot_point=c(555/2,555/2,555/2),
group_angle=c(0,30,0)) %>%
samples=500, fov=50, parallel=TRUE, clamp_value=5)