CSG Rotate

csg_rotate(
object,
pivot_point = c(0, 0, 0),
angles = c(0, 0, 0),
order_rotation = c(1, 2, 3),
up = c(0, 1, 0),
axis_x = NULL,
axis_z = NULL
)

## Arguments

object CSG object. Default c(0,0,0). Pivot point for the rotation. 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". Default c(0,1,0). Alternative method for specifying rotation--change the new "up" vector. Default NULL, computed automatically if not passed. Given the up vector as the y-axis, this is the x vector. Default NULL, computed automatically if not passed. Given the up vector as the y-axis, this is the z vector.

## Value

List describing the triangle in the scene.

## Examples

# \donttest{
#Rotate a pyramid (translating it upwards because the object is scaled from the center):
generate_ground(material=diffuse(checkercolor="grey20")) %>%
material=glossy(color="red"))) %>%
pivot_point = c(0,-0.99,-1.5),angle=c(0,45,0)),
material=glossy(color="green"))) %>%
`