mesh_bbox: Compute the axis-aligned bounding box of a mesh

View source: R/mesh_utils.R

mesh_bboxR Documentation

Compute the axis-aligned bounding box of a mesh

Description

Compute the axis-aligned bounding box of a mesh

Usage

mesh_bbox(mesh)

Arguments

mesh

A mesh descriptor list with vertices.

Value

A list with min and max (each length-3 numeric).

Examples

mesh <- generate_cuboid(c(0, 0, 0), c(1, 2, 3))
bb <- mesh_bbox(mesh)
bb$min
bb$max


scimesh documentation built on Aug. 9, 2026, 9:07 a.m.