Builds a list of structure meshes and stores it in the meshes slot.

seg_meshlist_add(
  segmentation,
  structures = NULL,
  pct_reduce = 0.1,
  puffiness = 1,
  verbose = FALSE
)

Arguments

segmentation

a `segmentation` class object

structures

a character vector of structure acronyms, indicating the structure(s) to be rendered. Default is NULL, meaning all structures will be rendered.

pct_reduce

numeric, target percentage of vertices for downsampling and remeshing. Closer to 0 gives a simpler mesh. Default is 0.1.

puffiness

numeric, determines a slight inflation of the mesh. Default is 1.

verbose

logical, show progress of the meshing? Default is FALSE.

Value

a `segmentation` class object with a list of triangular meshes (as `mesh3d` objects) in the `meshes` slot.