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

read_obj(filename, materialspath = NULL)

Arguments

filename

Filename of the OBJ file.

materialspath

Directory where the MTL file is located. Defaults to the directory of filename.

Value

ray_mesh list object #Load an arrow OBJ sphere = read_obj(system.file("extdata", "arrow.txt", package="rayvertex"))