Description Usage Arguments Value
View source: R/mouse_ccf_meshes.R
Read a .obj file to get a rgl-compatible mesh object
1 2 | obj_to_mesh(obj, material = "gray", invert_y = TRUE, yrange = c(0,
8000))
|
obj |
A character object with the location of a .obj file. |
material |
The rgl material to use for the mesh. Default is "gray". For details, see ?rgl.material. |
invert_y |
Logical. Whether to flip the object in the y-dimensions. This is useful for AIBS mesh objects. Default is TRUE. |
yrange |
Length 2 numeric vector indicating the range to use for inversion. Default is c(0,8000). |
a list object with class mesh3d and shape3d.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.