Rotate a mesh around an axis
Usage
rotate_mesh(mesh, angle_rad, axis = c(0, 0, 1))Examples
mesh <- generate_cuboid(c(0, 0, 0), c(1, 1, 1))
rotated <- rotate_mesh(mesh, pi / 4, axis = c(0, 1, 0))
rotated$vertices[1, ]
#> [1] 0.000000 -1.000000 1.414214