obj_to_mesh: Read a .obj file to get a rgl-compatible mesh object

Description Usage Arguments Value

View source: R/mouse_ccf_meshes.R

Description

Read a .obj file to get a rgl-compatible mesh object

Usage

1
2
obj_to_mesh(obj, material = "gray", invert_y = TRUE, yrange = c(0,
  8000))

Arguments

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).

Value

a list object with class mesh3d and shape3d.


AllenInstitute/cocoframer documentation built on May 21, 2020, 3:09 a.m.