This is currently only intended to work with triangular faces.

read_rgl_mesh_zip(mesh_name, zip_file, material = "gray")

Arguments

mesh_name

A character object specifying the mesh name, which will be used for file names.

zip_file

The zip file containing vectorized meshes.

material

The rgl material to use for the mesh. Default is "gray". For details, see ?rgl.material.

Value

a list object with class mesh3d and shape3d.

Details

This reverses the proccessing in save_rgl_mesh_zip() to rebuild the mesh object from binary vectors.

If you're looking for a simple way to get a brain structure, use ccf_2017_mesh, which wraps this function, and retrieves a mesh that's included in this package.

Examples

mesh_store <- system.file("extdata", "ccf_2017_meshes.zip", package = "cocoframer") structure_id <- mba_structure_id(acronym = "MOp") MOp_mesh <- read_rgl_mesh(structure_id, zip_file = mesh_store)
#> Error in read_rgl_mesh(structure_id, zip_file = mesh_store): could not find function "read_rgl_mesh"