Calculates the bounding box of a mesh

get_mesh_bbox(mesh)

Arguments

mesh

The mesh object.

Value

2x3 numeric matrix

Examples

if(run_documentation()) {
#Calculates the center of the mesh
get_mesh_bbox(generate_cornell_mesh())
}
#>       x   y   z
#> min -10 -10   0
#> max 565 565 565