read_rgl_mesh_zip.Rd
This is currently only intended to work with triangular faces.
read_rgl_mesh_zip(mesh_name, zip_file, material = "gray")
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. |
a list object with class mesh3d and shape3d.
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.
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"