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  -5  -5  -2.5
#> max 560 565 560.0