read_obj: Load an OBJ file
Description
Loads an OBJ file and return a ray_mesh
list structure. No processing is done on
the object other than loading it (unlike obj_model()
).
Usage
read_obj(filename, materialspath = NULL)
Value
ray_mesh
list object
#Load an arrow OBJ
sphere = read_obj(system.file("extdata", "arrow.txt", package="rayvertex"))
Arguments
- filename
Filename of the OBJ file.
- materialspath
Directory where the MTL file is located. Defaults to the directory of filename
.