obj_to_mesh.Rd
Read a .obj file to get a rgl-compatible mesh object
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.